[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: DNS or /etc/hosts?

This has nothing to do with LDAP per se.   ldapsearch and other ldap tools
make use of your systems resolver library to resolve DNS names, so if your
nsswitch.conf has something like "dns files", then your nameservers in
resolv.conf will be consulted first before /etc/hosts.   This will be true
of any other network applications or utilities as well.


----- Original Message -----
From: "Rachel Chew" <csvhl@dcs.warwick.ac.uk>
To: <openldap-software@OpenLDAP.org>
Sent: Thursday, September 27, 2001 8:01 AM
Subject: DNS or /etc/hosts?

> Hi,
> I'm wondering if the ldapsearch or any other operations reads the DNS
> first or /etc/hosts for the IP address of the ldap server. Does it always
> go by nsswitch.conf?
> Thanks.
> rachel