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

Rowland Penny rpenny at samba.org
Thu Sep 30 14:40:44 UTC 2021


On Thu, 2021-09-30 at 14:17 -0400, Leo Batista via samba wrote:
> 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 ..
> 

Why are you worrying ?

This is the DN of an additional DC in my AD:

dn: CN=dns-RPIDC2,CN=Users,DC=samdom,DC=example,DC=com

Yet:

pi at rpidc2:~ $ wbinfo -u | grep 'dns'
SAMDOM\dns-rpidc1
SAMDOM\dns-rpidc2

Rowland







More information about the samba mailing list