[Samba] How to Properly Configure Samba's Internal DNS

Marco Shmerykowsky marco at sce-engineers.com
Tue Feb 2 15:05:10 UTC 2021

On 2/2/2021 3:05 AM, L.P.H. van Belle via samba wrote:
> Hai,
> Well, this looks great Marco, the configs below look good, i only see a minor change you can do, so only for correctness, i would change the realm to CAPS in krb5.conf and smb.conf and netbios name in caps.

Is there a technical reason for all caps or is it stylistic just
to be able to read the file more clearly?

> And yes, you need to add the PTR records if you want a kerberos to work for example with CNAMES in the dns or set rdns = no in krb5.conf
> And in controdiction to Rowland, im saying.. by default windows "does" register A and PTR if you use a dynamic DNS setup, at least for the clients.
> I really advice to at least add for the AD-DC's the PTR records.
> Also, more and more needs the correct setup, so thats what i do recommend.
> Add the PTR, minimal for al you servers.

This was my inexperienced confusion.  I do not remember manually
adding either A or PTR records for the hostnames when I set up
the AD servers or the domain member servers (but I could be wrong).
The two AD's and one domain member server just seemed to "work."
I had to do it manually for the second domain member server.

 From the Sambawiki, it was not clear to me that setting these
records was required.  It seemed more optional and that thing
would work without the manual step. Learing as I go :)

More information about the samba mailing list