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 www.culham.net. resolver1.opendns.com

nslookup culham

 

 

 

 

 

 

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

 

 

 

 

 
Comments

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

K:\>ping -a http://www.culham.net

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

was looking for this command thanks

Leave a Reply