host.conf :
order hosts, bind
means search /etc/hosts first to resolve host names, then search dns.
Name servers are configured in /etc/resolv.conf, if you don't have anything set up for
a dns server, you can remove bind from host.conf.
Tamara
>>> Jeff Dike <[EMAIL PROTECTED]> 10/16 8:04 PM >>>
> I wonder how /etc/host.conf differs from /etc/nsswitch.conf. I have
> both files, and they both seem to set the search order...
You're right. I've got no idea what host.conf is for. nsswitch.conf is
definitely the one being used:
% strace ping mv.mv.com
...
open("/etc/nsswitch.conf", O_RDONLY) = 4
fstat(4, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
read(4, "#\n# /etc/nsswitch.conf\n#\n# An"..., 4096) = 1542
Jeff
************
[EMAIL PROTECTED] http://www.linuxchix.org
************
[EMAIL PROTECTED] http://www.linuxchix.org