[Samba] problem whith samba and dnsupdate command

Rowland penny rpenny at samba.org
Mon Aug 24 14:26:28 UTC 2020

On 24/08/2020 15:15, jmpatagonia via samba wrote:
> Problem whith dnsupdate -->
> /etc/samba#  samba_dnsupdate --all-names --fail-immediately
> Failed to get Kerberos credentials, falling back to samba-tool: kinit for
> DOMAIN-SERVER2$@POLICIA2.RIONEGRO.GOV.AR failed (Cannot contact any KDC for
> requested realm)
> ERROR(runtime): uncaught exception - (9711,
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
> 176, in _run
>      return self.run(*args, **kwargs)
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in
> run
>      raise e
> My dns server is a "dnmasq" and it is on another server.
> cat /etc/resolv.conf
> nameserver 10.xx.x.xx

OK, you are running 'samba_dnsupdate', so this means a DC (if it isn't, 
why are you running the command ?), which means you cannot run dnsmasq 
on it. Point the nameserver to its own ipaddress and remove dnsmasq.

It sounds like you are possibly running a strange (to AD) dns setup, the 
DC(s) must be authoritative for the AD domain and all domain computers 
must use the DC(s) as their nameservers and anything outside the AD 
domain will be forwarded to external dns servers by the DC(s).


More information about the samba mailing list