Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just changed the IP address of my (openldap) ldap server and despite DNS propagating, ldap still isn't resolving the new address correctly. When I run "host" the proper ip address is returned. There is no entry in /etc/hosts for But when I run:

ldapsearch -d 1 -x "uid" -H ldap://

I see the old address. How can I force ldap to check DNS for the proper IP address?



share|improve this question

I knew that as soon as I asked I'd figure it out:

nscd --invalidate=hosts

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.