Saturday 10 September 2011

How to get Information of any Website using Command Prompt


Hey friends, in this post I'll show how to find IP address of any Website(URL) using Command Prompt(cmd) and also how to find many network related information about a particular website.


1) Start Command Prompt


Goto start --> Programs --> Accessories --> Command Prompt
                                 OR
Goto start --> Run --> Type cmd --> hit Enter




2) IP address and Connectivity


Type the following command in the command prompt,
ping website
eg. ping www.google.com


   A screenshot of the ping command


♦ The 2nd line i.e. Pinging www.google.com [66.102.13.104] with 32 bytes of data:


♦ Here [66.102.13.104] is the IP address of google.com


♦ You can replace www.google.com with any other website.


♦ Notice the connectivity between you machine and the server from the line where it says: "Packets: Sent = X, Received = X, Lost = X (X% loss)," where all the Xs will be replaced by numbers. This gives you an idea of how much percent of the packets sent to the server will be lost.




3) Routing Information


a) Type the following command in the command prompt,
tracert website
eg. tracert www.google.com


    A screenshot of a tracert session


♦ The above command gives you the routing information of a particular website.


♦ You can replace www.google.com with any other website.


♦ Notice the listing of hops along the route path of packets from your machine to the server. This gives you an idea of how many routers/hops the packet has to travel before reaching the server, starting from your machine.


b) Type the following command in the command prompt,
pathping website
eg. pathping www.google.com


   A screenshot of a pathping command execution


♦ The pathping utility gives the information about network latency and network loss at intermediate hops between a source and destination.


♦ Pathping sends multiple Echo Request messages to each router between a source and destination over a period of time and then computes results based on the packets returned from each router. 




4) DNS Information


Type the following command in the command prompt,

nslookup website
eg. nslookup www.google.com

   A screenshot of nslookup execution

♦ The above command gives you the DNS information of a particular website.

♦ It finds the DNS Server (first line) and the IP addresses of the server you queried about.




NOTE : If you're using these command in a corporate network or a school network, some of these commands might not give you results. Most institutions have firewalls with settings to deny services provided by these tools.




Thanks,
Parag

1 comment:

  1. Nice !! Here is another idea http://www.app-mug.com/2017/01/how-to-find-any-websites-ip-adress.html

    ReplyDelete