Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2008 19:52:16 -0400
From:      Tom Marchand <m0rchand@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   /etc/hosts
Message-ID:  <7A686BAC-2F03-4B18-8307-83DDAD949625@comcast.net>

next in thread | raw e-mail | index | archive | help
Hi,

I've got an issue where hosts defined in my /etc/hosts are not being  
resolved.  I've looked at resolv.conf, host.conf and nsswitch.conf and  
everything looks ok.  It's my understanding that with the below  
configurations, /etc/hosts should be used first then DNS.  Correct?   
This is a 6.1 system.

host# cat resolv.conf
local	domain	
nameserver	x.x.x.x

cat host.conf
# Auto-generated from nsswitch.conf, do not edit
hosts
dns


host# cat nsswitch.conf
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7A686BAC-2F03-4B18-8307-83DDAD949625>