Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 myserver.com" the proper ip address is returned. There is no entry in /etc/hosts for myserver.com. But when I run:

ldapsearch -d 1 -x "uid" -H ldap://myserver.com

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

thanks,

Mike

share|improve this question

1 Answer 1

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

nscd --invalidate=hosts

share|improve this answer

Your Answer

 
discard

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.