It turns out that I'm trying to migrate a server Windows Server 2008 R2 with AD DC, to a CentOS 7 Samba4.
Until now it works perfectly migration of users, as well, that are synchronized and when I create a user on a server, on the other is reflected immediately.
The problem is that the DNS records are not migrated because they simply are creating a file called /usr/local/samba/private/named.conf.update.
Also I need that when you turn off WIN2008R2 and only stays on the CentOS you can join computers to the domain, for this I must have configured the DNS on CentOS machine.
I have tried to apply the following command:
# Samba-tool samdom.example.com domain join DC -Uadministrator --realm = SAMDOM.EXAMPLE.COM
This command is all arranged as above explain.
Because of this I then tried this command:
# Samba-tool samdom.example.com domain join DC -Uadministrator --realm = SAMDOM.EXAMPLE.COM --dns-backend = BIND9_DLZ
But now I have a new error saying not find DNS zones.
I greatly appreciate you can help me with this error, or helping me with a more accurate method to achieve the objective that I have proposed.
From your description it sounds that you need to try the workaround here: https://wiki.samba.org/index.php/Samba_AD_DC_Troubleshooting#DNS_Replication_from_Windows_AD_DC_fails
I had to.
Closing this, it appears to be a misconfiguration of the join command.
The bug reporter was using this:
Samba-tool samdom.example.com domain join DC -Uadministrator --realm = SAMDOM.EXAMPLE.COM
It should have been:
samba-tool domain join samdom.example.com DC -Uadministrator --realm=SAMDOM.EXAMPLE.COM