The Samba-Bugzilla – Bug 8894
RFE: Implement DNS registration update/refresh
Last modified: 2016-05-16 02:50:53 UTC
AD domains often use DNS scavenging  meaning that DNS entries for domain
members which have not been refreshed in a certain period of time will be
removed. Windows domain members refresh their DNS registrations daily but Samba
does offer such an option currently. It is of course possible to use something
like "net ads dns register -P" in daily cron but this is rather inelegant.
Samba/winbind should automatically refresh AD DNS registration if so
'net ads dns register' doesn't really work very well anyway; see bug 7634.
I ended up scripting calls to 'nsupdate' to set the forward and reverse DNS, in a NetworkManager dispatcher script.
Not only should SAMBA update DNS by way of "net ads dns register" every 24 hours, but it should also update whenever the IP addresses of the system change, for both IPv4 and IPv6. For example, suppose DHCP decides to give SAMBA a new IP address - then SAMBA needs to update DNS immediately.