Finding the Public IP Address for a Server using NSLookup

I was chatting to a colleague today (in the elevator of all places) and he was talking about using various websites to find your external IP Address but he wanted to know if there was a command line alternative or something in PowerShell. Given the fact that we spent less than a minute in the elevator my  response was to use a DNS request find out your public IP, just like this…


nslookup culham







Good old nslookup, a command that’s been around since…almost forever…who knew? 🙂






Thx for the info. We could get the same output by using a simple ping command also.

K:\>ping -a

Pinging [] with 32 bytes of data:
Reply from bytes=32 time=52ms TTL=44
Reply from bytes=32 time=51ms TTL=44

was looking for this command thanks

Leave a Reply