/etc/hosts isn't being read
Fabian Keil
freebsd-listen at fabiankeil.de
Thu Apr 13 16:07:57 UTC 2006
Josh Paetzel <josh at tcbug.org> wrote:
> I have a stock 6.0-RELEASE box that doesn't seem to be
> reading /etc/hosts
>
> In /etc/hosts I have:
>
> 192.168.1.101 example example.example.org
>
> /etc/nsswitch.conf is stock:
>
> group: compat
> group_compat: nis
> hosts: files dns
> networks: files
> passwd: compat
> passwd_compat: nis
> shells: files
>
> $ host example
> Host example not found: 3(NXDOMAIN)
>
> $ host example.example.org
> Host example not found 3(NXDOMAIN)
Did host ever query /etc/hosts?
> What am I doing wrong here that is keeping /etc/hosts from being read?
Does ping ignore /etc/hosts as well?
fk at TP51 ~ $host localhost
Host localhost not found: 3(NXDOMAIN)
fk at TP51 ~ $ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.383 ms
^C
--- localhost ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.383/0.383/0.383/0.000 ms
Fabian
--
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060413/b2ddbc3f/signature.pgp
More information about the freebsd-questions
mailing list