[Gllug] re: resolving order question

t.clarke tim at seacon.co.uk
Tue Nov 30 16:35:48 UTC 2004


I must admit, using Unix, I was not aware of nsswitch.conf !

I did a quick test on our only linux box and it appears that, indeed,
/etc/nsswitch.conf controls the order in which the resolver library looks
up names.  The default would appear to be 'files dns'; so the /etc/hosts
file should always be consulted first, before dns is used.  I must assume
that the 'hostresorder  hosts,bind' line in /etc/resolv.conf is redundant.

Tim

********************************************************************************
This E-Mail (and any files transmitted with it) are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this message
in error please notify the sender and delete the message.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list