httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramya <ramya_krish...@sifycorp.com>
Subject [users@httpd] Confusion about the hosts
Date Thu, 19 Aug 2004 05:05:25 GMT
This may sound too trivial to the group but still i have to get through  
this.
  dig www.msgeng.com
Problem: 1. I have three hosts stored in my /etc/hosts. when i dig to  
these hosts each time i get a different address and not the ip stored in  
the /etc/hosts. how is that possible.
2. I have a domain www.msgeng.com in the /etc/hosts and still i am unable  
to dig the www.msgeng.com. Is it not enough that the ip address be  
specified in the hosts for a successful dig
3. And this is just beyond me. Why is it that i ping to the www.ghg.com or  
www.def.com the reply has www.msgeng.com in the result


Some information
1. Ping
ping www.def.com
PING www.def.com (210.210.122.132) 56(84) bytes of data.
64 bytes from www.msgeng.com (210.210.122.132): icmp_seq=0 ttl=64  
time=0.037 ms
--- www.def.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.037/0.040/0.043/0.003 ms, pipe 2
[root@ramya conf]# ping www.ghg.com

PING www.ghg.com (210.210.122.132) 56(84) bytes of data.
64 bytes from www.msgeng.com (210.210.122.132): icmp_seq=0 ttl=64  
time=0.044 ms
--- www.ghg.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.041/0.042/0.044/0.006 ms, pipe 2


2.I tried to dig all three domains-
; <<>> DiG 9.2.3 <<>> www.msgeng.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8543
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.msgeng.com.                        IN      A

;; Query time: 1 msec
;; SERVER: 202.144.76.3#53(202.144.76.3)
;; WHEN: Thu Aug 19 10:18:07 2004
;; MSG SIZE  rcvd: 32

[root@ramya conf]# dig www.def.com

; <<>> DiG 9.2.3 <<>> www.def.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56160
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.def.com.                   IN      A

;; ANSWER SECTION:
www.def.com.            2917    IN      A       212.34.140.148

;; Query time: 1 msec
;; SERVER: 202.144.76.3#53(202.144.76.3)
;; WHEN: Thu Aug 19 10:18:39 2004
;; MSG SIZE  rcvd: 45

[root@ramya conf]# dig www.ghg.com

; <<>> DiG 9.2.3 <<>> www.ghg.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30340
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.ghg.com.                   IN      A

;; ANSWER SECTION:
www.ghg.com.            13746   IN      A       192.112.219.11

;; Query time: 1 msec
;; SERVER: 202.144.76.3#53(202.144.76.3)
;; WHEN: Thu Aug 19 10:18:46 2004
;; MSG SIZE  rcvd: 45

thanks for replying
Ramya Krishnan
-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message