DNS updates from Plesk Windows installation to cPanel DNSOnly

kenneth-vkd

Active Member
Apr 1, 2017
31
1
8
Denmark
cPanel Access Level
DataCenter Provider
Hi
We recently migrated our entire webserver infrastructure to use WHM/cPanel (CentOS 7) and also the cPanel DNSOnly (CentOS 7) for our nameservers. DNS is still manged by a seperate cluster until the below issue is resolved.
However we have a few hundred customers using ASP.NET based websites, and since WHM does not exist for Windows hosts, we decided to use Plesk for these.
However we are now facing an issue with DNS records.
We need to sync the DNS zones from the Windows Servers to WHM/cPanel DNSOnly servers. We have made the first step, by configuring Windows to use BIND-zones, so that the zone-files are compatible between the systems.
My initial thought was to create a SMB-fileshare on the windows servers and then have a cron-job running on the nameservers to pull the zonefiles once every hour. To test this theory, I manually copied a DNS zone from the windows plesk installation to the /var/named directory of a cPanel DNSOnly server and restarted bind with "systemctl restart named" and then tried to run nslookup from my local workstation and force it to perform the lookup against the newly created zone, but the lookup failed.
I tried renaming the file from domain.tld to domain.tld.db and restarted bind again.
What am I missing here in order to get it working?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
To test this theory, I manually copied a DNS zone from the windows plesk installation to the /var/named directory of a cPanel DNSOnly server and restarted bind with "systemctl restart named" and then tried to run nslookup from my local workstation and force it to perform the lookup against the newly created zone, but the lookup failed.
I tried renaming the file from domain.tld to domain.tld.db and restarted bind again.
What am I missing here in order to get it working?
Hello,

Try rebuilding the /etc/named.conf file after adding the new domain.tld.db file to see if that helps. EX:

Code:
/scripts/rebuilddnsconfig
Thank you.
 

kenneth-vkd

Active Member
Apr 1, 2017
31
1
8
Denmark
cPanel Access Level
DataCenter Provider
Hi
This seems to have solved the issue, once the filename is correct.
Now the only remaining issue is how I get the systems to correctly name the files that have been transferred, as Plesk names the zone-files domain.tld and not domain.tld.db. But I think that this question might be better suited for the Plesk community, unless there is a way to get CentOS 7 to rename the files when being copied.
 
  • Like
Reactions: cPanelMichael