[techtalk] localhost, etc.

Jeff Dike jdike at karaya.com
Sat Oct 16 23:04:09 EST 1999


> 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



************
techtalk at linuxchix.org   http://www.linuxchix.org




More information about the Techtalk mailing list