DNS Change does not succeed

bind

#1

Hi,
I changed a host record entry in my configuration though UMC.
In udm I see:

root@ucs:/etc# udm dns/host_record list| grep -A2 -B1 hostb

DN: relativeDomainName=hostb,zoneName=knebb.ucs,cn=dns,dc=knebb,dc=ucs
  a: 10.200.2.6
  name: hostb
  zonettl: 3 hours

I restarted bind9, nscd and did a ucr commit before restarting. DNS-backend is ldap. But the resolver stays fixed on the old IP.


root@ucs:/etc# host hostb.knebb.ucs ucs
Using domain server:
Name: ucs
Address: 192.168.4.1#53
Aliases:

hostb.knebb.ucs has address 10.101.0.2

I do not have a matching reverse zone (and do not need one), would this be an issue? Oh, and in /etc/hosts I do not have such an entry. Oh, and no rejects anywhere…

Any ideas?
Thanks!

/KNEBB


#2

Hi,

fixed it on my own meanwhile.

I figured out, notifier and listener were not in sync. This article helped at bit.

I could not stop the listener. strace displayed some sort of waiting MUTEX so I assumed a deadlock. systemctl did not stop the process so I killed it hard (-9) and restarted it. Soon after both were in sync and I have my new DNS entry now.

Still having ome issues with DNS updates but so far it’s working.
/KNEBB


#3

DNS entries are cached locally on the UCS box by nscd. To get changes to be picked up immediately you should run “nscd -i hosts” to clear the cache.