Web lists-archives.com

Re: [Samba] DHCP-DNS problems




On Tue, 2 Jan 2018 16:15:14 +0000
Kristján Valur Jónsson <kristjan@xxxxxx> wrote:

> Sure, here it is.
> However, notice that named appears to enter a state where it refuses
> the updates, and restarting *only *named, fixes it.  Unsure how to
> explain that. I also tried removing the cached samba credentials
> from /tmp and recreating them, etc, but no luck.  The credentials as
> used by dhcp-dyndns appear to be ok, only named won't accept them....
> Anyway, see the attached archive.
> 

Not a lot wrong there, apart from:

/etc/hostname should only contain, the short hostname e.g. dc02

I would change /etc/hosts on dc02 to this:
127.0.0.1 localhost
::1 localhost
<dc02 ipaddress> dc02.rvx.is dc02
Repeat for the other DCs

smb.conf seems to be missing 'idmap_ldb:use rfc2307  = yes'

'named.conf' has this line: recursion yes;

nine lines above it is this:

- If you are building an AUTHORITATIVE DNS server, do NOT enable
  recursion.

All AD DCs running a dns server are 'AUTHORITATIVE'

You seem to be running dhcp in ways I never thought of, but it should
work, I think that for some reason the kerberos ticket is expiring and
not being renewed.

Try making the changes I suggested above and see how you go on. If it
fails again, check if '/tmp/dhcp-dyndns.cc' exists and if it has
expired. If it doesn't exist or has expired, try running this as root:

kinit -F -k -t /etc/dhcpduser.keytab -c /tmp/dhcp-dyndns.cc
dhcpduser@xxxxxx

Where 'XXX.XX' is your uppercase realm name.

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba