[Samba] Change the value of the records that SAMBA creates when joining a second domain controller to the primary.

Leo Batista leo95batista at gmail.com
Thu Sep 30 18:17:00 UTC 2021


Hi everyone, I am trying to join a second server to my primary domain
controller to use as a secondary domain controller. I am using the
following command to do it:

root at dc2:~# kinit administrator
administrator at EXAMPLE.COM's Password:
samba-tool domain join example.com DC --dns-backend=BIND9_DLZ
--option='idmap_ldb:use rfc2307 = yes' -k yes

And the operation is successful, I have managed to join my second server
(dc2) to the primary server (dc1). But I have a question, when I check my
DNS records, I see that when I join the second server, it creates a record
with the name DC2, in uppercase, also in the Active Directory users it
creates a user with the name dns-DC2, in capital letters. My question, and
it might sound silly, is: How could I change the value of those registers
when joining the second server. Basically, I want the values to be
lowercase, in DNS as dc2, and in Active Directory as dns-dc2 ..

Thank you very much in advance.


More information about the samba mailing list