How to Get Website Information Using Command Prompt

This minHour teaches you how to find basic information about a website via Command Prompt on a Windows computer. You can see a website's IP address, the route from your network to the website, and the website's DNS information from within Command Prompt.


Open Start.

Click the Windows logo in the bottom-left corner of the screen.

Search for Command Prompt.

Type in command prompt to bring up a list of matching results.

Click Command Prompt.

It’s at the top of the Start menu. Doing so will open the Command Prompt window.

Ping the web address you want to check.

You can “ping” the nearest website server to see how far away the server is in milliseconds:

  • Type in ping where “website” is your website’s name.
  • Press .
  • Press again to stop the ping.

Trace the website’s route.

Sending a “traceroute” request to your website will show the route the request takes, documenting any server addresses between you and the website:

  • Type in tracert where “website” is the website’s name.
  • Press .
  • Review the path your request took (sections with asterisks are instances in which the request timed out).

Check the DNS information for the website.

You can see the website’s DNS address, which differs from the IP address, by doing the following:

  • Type in nslookup where “website” is the name of the website.
  • Press .
  • Review the website’s DNS addresses.


  • You can sometimes use a website’s IP address to connect to the website in an environment in which the website itself is blocked.


  • Most websites use firewalls to block unauthorized access, so the IP address you see for a website may be misleading.

Leave a Comment