[Samba] DNS Update Failing

Rowland Penny rpenny at samba.org
Sun Oct 31 19:22:09 UTC 2021


On Sun, 2021-10-31 at 15:13 -0400, Rob Campbell via samba wrote:
> My /etc/resolv.conf was overwritten.  What service does this on
> Debian?

Usually resolvconf or networkmanger, but it usually says at the top of
/etc/resolv.conf

> I've disabled systemd-resolved already.
> 
> Getting a different error now.
> samba_dnsupdate --verbose --all-names
> *29 DNS updates* and 0 DNS deletes needed
> Successfully obtained Kerberos ticket to DNS/DC01.home.test-
> server.lan as
> DC01$
> update(nsupdate): A DC01.home.test-server.lan 10.0.0.19
> Calling nsupdate for A DC01.home.test-server.lan 10.0.0.19 (add)
> Successfully obtained Kerberos ticket to DNS/DC01.home.test-
> server.lan as
> DC01$
> Outgoing update query:
> ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:      0
> ;; flags:; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
> ;; UPDATE SECTION:
> DC01.home.test-server.lan. 900 IN A 10.0.0.19
> 
> ; TSIG error with server: tsig indicates error
> update failed: NOTAUTH(BADSIG)
> Failed nsupdate: 2
> update(nsupdate): CNAME
> f79b5e15-ea2b-4afd-a8ca-bb16e2531521._msdcs.home.test-server.lan
> DC01.home.test-server.lan
> ...
> 

Try adding this line to your smb.conf:

dns update command = /usr/sbin/samba_dnsupdate --use-samba-tool

Restart Samba, it usually works

Rowland





More information about the samba mailing list