host.conf or nsswitch.conf?

Thomas Nikolajsen thomas.nikolajsen at mail.dk
Fri Jun 29 16:08:41 PDT 2007


On Fri, 26 Jan 2007 17:05:45 Jeremy C. Reed writes:
>I see a DragonFly system has both host.conf and nsswitch.conf man pages.
>gethostbyname(3) man page lists /etc/host.conf under files.
>The pam_unix(8) and newbtconf(8) man pages refer to nsswitch.conf(5).
>But I can't see where nsswitch.conf is used in any DragonFly code.
>Why is the nsswitch.conf man page installed?
>Or am I overlooking something? :)
>
>  Jeremy C. Reed

I think you are right that nsswitch.conf.5 should be dropped,
or be implemented: nsswitch.conf file name currently not in libc.

Origin in dfly:
http://leaf.dragonflybsd.org/mailarchive/commits/2003-07/msg00502.html

But: "We will not be going the nsswitch way.":
http://leaf.dragonflybsd.org/mailarchive/commits/2004-09/msg00264.html

 -thomas
PS: Found this googling for nsswitch.conf in the dfly archives.
Was looking for a way to not use remote dns-servers for tcpdump. Didn't succeed.
Was guessing at ability to set environ variable to control nameserver pr process.






More information about the Users mailing list