Hi, am playing around with the 'dig' tool and picked Google to experiment with. It appears from anyone of the following tests that the hostname 'vb-in-f139.1e100.net' and the IP '173.194.73.139' are the same box. However, if you type in the hostname and IP as they are in the browser, they get directed to different pages.
For me, the hostname gets resolved to 'www.google.com.hk' loading a page with an animated banner. The ip gets resolved to well ... itself and loaded up a page with just the "Google" static banner.
Any idea what's happening?
Lookup hostname vb-in-f139.1e100.net
Quote:
[root@www local]# dig vb-in-f139.1e100.net
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> vb-in-f139.1e100.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35571
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;vb-in-f139.1e100.net. IN A
;; ANSWER SECTION:
vb-in-f139.1e100.net. 86196 IN A 173.194.73.139
;; Query time: 1 msec
;; SERVER: 66.96.80.194#53(66.96.80.194)
;; WHEN: Wed Feb 13 08:09:55 2013
;; MSG SIZE rcvd: 54
|
Look up IP 173.194.73.139
Code:
[root@www local]# dig -x 173.194.73.139
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> -x 173.194.73.139
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27747
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;139.73.194.173.in-addr.arpa. IN PTR
;; ANSWER SECTION:
139.73.194.173.in-addr.arpa. 40172 IN PTR vb-in-f139.1e100.net.
;; Query time: 1 msec
;; SERVER: 66.96.80.194#53(66.96.80.194)
;; WHEN: Wed Feb 13 08:05:21 2013
;; MSG SIZE rcvd: 79
Lookup hostname for IP 173.194.73.139
Code:
[root@www local]# nslookup 173.194.73.139
Server: 66.96.80.194
Address: 66.96.80.194#53
Non-authoritative answer:
139.73.194.173.in-addr.arpa name = vb-in-f139.1e100.net.
Authoritative answers can be found from:
Ping hostname vb-in-f139.1e100.net
Code:
[root@www local]# ping vb-in-f139.1e100.net
PING vb-in-f139.1e100.net (173.194.73.139) 56(84) bytes of data.
64 bytes from vb-in-f139.1e100.net (173.194.73.139): icmp_seq=1 ttl=48 time=35.9 ms
--- vb-in-f139.1e100.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 35.951/35.951/35.951/0.000 ms