We always use command lines like PING to get the IP address assigned to a specific domain DNS. For example, to get the IP address of google.com, we use:
ping google.com
![](https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/03/image.png?resize=600%2C311&ssl=1)
As you can see, this only returns one of IP addresses assigned to google.com. To get the full list of IP addresses associated with google.com, you need to use a different command line like nslookup.
![](https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/03/image-1.png?resize=535%2C360&ssl=1)
Or better, use PowerShell, like this shown below:
[System.Net.Dns]::GetHostEntry('google.com').AddressList.IPAddressToString
![](https://i1.wp.com/www.kjctech.net/wp-content/uploads/2019/03/image-2.png?fit=600%2C245&ssl=1)
It calls up .Net DNS library and use the function GetHostEntry to get the full list of IP address associated with the specified domain DNS.