Monday, October 6, 2008

cat /etc/nsswitch.conf

controls the order in which host name resolutions are checked


etc/nsswitch.conf file
----------------------

Every Linux computer has this file that determines what exactly should happen when translating a host name to an IP address and vice versa.

This file specifies many things (such as user configuration,), but only the following lines are important for resolving host names:

hosts: files dns
networks: files

These two lines specify that, when resolving host names as well as network names, the (local) files should be searched first, and that the DNS subsystem should be used only if the files have no information about the given host. Thus, an administrator can make sure that frequently accessed host names are resolved locally, where the DNS is contacted only

sulekha

the following line is taken from my /etc/nsswitch.conf file

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4


can any one explain me what is meant by mdns4_minimal ,[NOTFOUND=return], and mdns4

spd106

It's the recommended settings for Avahi (the mdns daemon).

See this page at the project website for more information.
http://avahi.org/wiki/AvahiAndUnicastDotLocal

---------------------------------------------------------------------------------

No comments:

Post a Comment