How to get IP Address of a URL in Windows PowerShell

Cover image

Just run the below command in PowerShell.

[System.Net.Dns]::GetHostAddresses("github.com").IPAddressToString

This will output a list of IP Addresses related to the website URL given as the parameter to the GetHostAddresses() function.

Have questions? Discuss on Twitter

Last Updated -