I have a network problem with my hosts file :-(
Dan Jenkins
dan at rastech.com
Sat Dec 11 22:24:00 EST 2004
> -----Original Message-----
> From: Steven W. Orr <steveo at syslang.net>
> To: Greater New Hampshire Linux User Group <discuss at gnhlug.org>
> Sent: Sat Dec 11 16:56:21 2004
> Subject: I have a network problem with my hosts file :-(
>
> 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.
check /etc/host.conf
It should say:
order hosts,bind
BTW, dig would reference a DNS server, not a hosts file, AFAIK.
--
Dan Jenkins (dan at rastech.com)
Rastech Inc., Bedford, NH, USA --- 1-603-206-9951
*** Technical Support for over a Quarter Century
More information about the gnhlug-discuss
mailing list