[Samba] Changing the IP Address of a Samba AD DC doesn't work - samba_dnsupdate crashes

Rowland Penny rpenny at samba.org
Mon Jun 12 11:12:15 UTC 2017


On Mon, 12 Jun 2017 12:32:34 +0200
Julian Timm via samba <samba at lists.samba.org> wrote:

> Hello!
> 
> I've followed your tutorial to change the IP Address of our Samba AD
> DC:
> https://wiki.samba.org/index.php/Changing_the_IP_Address_of_a_Samba_AD_DC
> 
> But the samba_dnsupdate tool always crashes with this output:
> 
> samba_dnsupdate --verbose
> Unknown parameter encountered: "ks"
> Ignoring unknown parameter "ks"
> IPs: ['192.168.68.201']

Can you post your smb.conf, this way we can see what 'ks' is and if it
is part of your problem.

> Looking for DNS entry A mydomain.lan 192.168.68.201 as mydomain.lan.
> Failed to find matching DNS entry A mydomain.lan 192.168.68.201
> Looking for DNS entry A PDC.mydomain.lan 192.168.68.201 as
> PDC.mydomain.lan. Failed to find matching DNS entry A
> PDC.mydomain.lan 192.168.68.201 Looking for DNS entry A
> gc._msdcs.mydomain.lan 192.168.68.201 as gc._msdcs.mydomain.lan.
> Failed to find matching DNS entry A gc._msdcs.mydomain.lan
> 192.168.68.201 
> as PDC.mydomain.lan. Looking for DNS entry A gc._msdcs.mydomain.lan
> 192.168.18.201 as gc._msdcs.mydomain.lan. Traceback (most recent call
> last): File "/usr/sbin/samba_dnsupdate", line 621, in <module>
> get_credentials(lp) File "/usr/sbin/samba_dnsupdate", line 125, in
> get_credentials raise e RuntimeError: kinit for PDC$@mydomain.LAN
> failed (Cannot contact any KDC for requested realm)
> 
> -> Old IP: 192.168.18.201
> -> New IP: 192.168.18.201

Those IPs match

> 
> Kinit failed because it still uses the old address.
> 
> We are using Ubuntu 14.04.5 with Samba 4.3.11.
> 

Is this a domain with only one DC ?

Is there any way you can upgrade Samba ?

Rowland




More information about the samba mailing list