[Samba] Dynamic DNS for Samba domain joined hosts

Jon Gerdes gerdesj at blueloop.net
Wed Jul 1 14:32:16 UTC 2020


On Wed, 2020-07-01 at 08:16 +0100, Rowland penny via samba wrote:
> On 30/06/2020 23:54, Jon Gerdes via samba wrote:
> > Dear all
> > 
> > I have a Ubuntu 18.04 box with Samba 4.7.6+dfsg~ubuntu-0ubuntu2.16 on it.  Until recently I only used winbind on it
> > to
> > enable GSSAPI for ssh and Apache.  The machine is domain joined to a 2016 based set of AD DCs.
> > 
> > I have added a IPv6 static address to the box and want to update DNS dynamically.
> > 
> > I installed all of Samba to get "samba_dnsupdate".  Prior to this I only needed winbind and a few Kerberos related
> > things.  Whenever I run samba_dnsupdate I get the error:
> > 
> > "No such file or directory: '/var/lib/samba/private/dns_update_list"
> > 
> > I can't work out what creates that file. The directory exists. I've tried starting smbd and nmbd and restarting
> > winbind.
> >   Normally I only run winbind on this box.
> > 
> > Cheers
> > Jon
> 
> you appear to be trying to run something only meant for a Samba AD DC on 
> a Unix domain member, this will not work.
> 
> I think you are trying to get your Unix dhcp clients to update their dns 
> records in AD, just like the windows clients do, not sure you can get 
> this to work.
> 
> Rowland
> 

OK I'll answer my own question:

# net ads dns register
Successfully registered hostname with DNS

... and all addresses appear in DNS

Cheers
Jon



More information about the samba mailing list