Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DNS updates from Plesk Windows installation to cPanel DNSOnly

Discussion in 'Bind / DNS / Nameserver Issues' started by kenneth-vkd, Nov 21, 2017.

  1. kenneth-vkd

    kenneth-vkd Member

    Joined:
    Apr 1, 2017
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,700
    Likes Received:
    1,703
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. kenneth-vkd

    kenneth-vkd Member

    Joined:
    Apr 1, 2017
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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.
     
    cPanelMichael likes this.
Loading...

Share This Page