I have a network problem with my hosts file :-(
Steven W. Orr
steveo at syslang.net
Sat Dec 11 16:57:01 EST 2004
Here's the deal.
533 > ls -l /etc/hosts
-rw-r--r-- 2 root root 264 Mar 7 2004 /etc/hosts
534 >
Here are the relevant entries from the file:
535 > cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.4 saturn syslang.net
192.168.0.2 uranus
192.168.0.3 linus
The problem is that I don't seem to be able to access anything in my hosts
file by name. I can ping 127.0.0.1 but I can't ping localhost.
Here's the output of dig:
[root at saturn root]# dig localhost
; <<>> DiG 9.2.1 <<>> localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54624
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;localhost. IN A
;; AUTHORITY SECTION:
. 7181 IN SOA A.ROOT-SERVERS.NET.
NSTLD.VERISIGN-GRS.COM. 2004121100 1800 900 604800 86400
;; Query time: 109 msec
;; SERVER: 207.172.3.8#53(207.172.3.8)
;; WHEN: Sat Dec 11 16:55:13 2004
;; MSG SIZE rcvd: 102
[root at saturn root]#
My ifconfig output shows that eth0, eth1 and lo are in fact up.
Anyone have any idea what this is?
Thanks :-(
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
More information about the gnhlug-discuss
mailing list