The Samba-Bugzilla – Bug 9641
Samba hands out stale IP address
Last modified: 2013-04-24 04:38:55 UTC
I'm running samba4 on ubuntu (4.0.0+dfsg1-1), on a machine that has had a variety of DHCP-assigned IPs.
When I installed samba4, this machine had the IP of 192.168.1.103.
Now, it has a DHCP assigned value of 192.168.0.2
dig +short @192.168.0.2 machine.corp.example.com:
dig +short @192.168.0.2 machine
I'm sure this is samba4 replying, and the upstream forwarding nameserver actually returns the correct (192.168.0.2) value for both. samba4 has clearly cached this somewhere.
The logs show nothing of interest, except for:
> Not authoritative for 'machine', forwarding [so the correct value is coming from the upstream DNS]
(Just to be clear about the timeline, this machine was installed w/ an IP of 192.168.1.103, but hasn't had that IP for days, and has been restarted since then.)
Resolved by re-provisioning the DC with:
> samba-tool domain provision