SDB:Find IP address
Server IP address
Nslookup
The most common way to find the IP address for a given website/server is to use command
The name comes from name server lookup.
For instance to find the IP address for a ftp.gwdg.de open a command line and type in:
Your computer will contact the name server (DNS) that is assigned by your Internet service provider and print on the screen information, like this:
Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: Name: ftp.gwdg.de Address: 134.76.12.3
In above example
Server: 192.168.1.1
is IP address of LAN router that is connecting to DNS server that is assigned by Internet service provider, but for computers in LAN that is the name server. If you connect directly to Internet the number can be different.
Address: 192.168.1.1#53
is almost the same, additional #53 is the port where DNS server is listening for incoming connections.
The next 3 lines are actual answer,
Non-authoritative answer: Name: ftp.gwdg.de Address: 134.76.12.3
Don't pay attention to
Non-authoritative answer:
as the only authoritative DNS server for ftp.gwdg.de is the one that serves gwdg.de domain, all others in the world can give you only non-authoritative answer, but as you can see Internet works fine anyway.
Host
Another common method of finding the IP address of a server is the command:
Using the host to find the IP address of ftp.gwdg.de one would enter:
which would return the following (or similar):
ftp.gwdg.de has address 134.76.12.3 ftp.gwdg.de mail is handled by 0 mx.gwdg.de.
Which gives the correct IP address: 134.76.12.3
Dig
dig DNS Information Gathering tool, gives a lot more output than host, which includes the IP address.
Which is used by entering the following command:
Using ftp.gwdg.de as the example again, enter:
Which returns:
; <<>> DiG 9.5.0-P2 <<>> ftp.gwdg.de ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6100 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ftp.gwdg.de. IN A ;; ANSWER SECTION: ftp.gwdg.de. 1827 IN A 134.76.12.3 ;; Query time: 15 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) ;; WHEN: Wed Jan 6 23:15:07 2010 ;; MSG SIZE rcvd: 45
Most of this probably isn't interesting, what is interesting is the IP address given in the answer section:
;; ANSWER SECTION: ftp.gwdg.de. 1827 IN A 134.76.12.3
Again the IP address 134.76.12.3 is given.
Your IP address
There are many websites which can tell you the IP address you are using to connect to the Internet, one such website is: http://www.whatismyip.org/