Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 10:55:19 -0500
From:      Josh Paetzel <josh@tcbug.org>
To:        questions@freebsd.org
Subject:   /etc/hosts isn't being read
Message-ID:  <200604131055.19504.josh@tcbug.org>

next in thread | raw e-mail | index | archive | help
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)

What am I doing wrong here that is keeping /etc/hosts from being read?

-- 
Thanks,

Josh Paetzel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604131055.19504.josh>