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!

Transfer to DNS slave

Discussion in 'Bind/DNS/Nameserver' started by Leszek Bal, Jan 25, 2016.

  1. Leszek Bal

    Leszek Bal Member

    Joined:
    Oct 14, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello,

    is there anything I need to do to allow transfer to secondary dns on cpanel?

    Now I have in named.log:
    25-Jan-2016 05:25:52.226 security: error: client 213.251.188.141#39226 (domain.tldl): view external: zone transfer 'domain.tld/AXFR/IN' denied
    25-Jan-2016 05:25:52.842 security: error: client 213.251.188.141#39546 (domain2.tld): view external: zone transfer domain2.tld/AXFR/IN' denied
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Are the servers connected through a DNS cluster? If so, syncing the zone to the additional server in the cluster does not require any additional actions.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Leszek Bal

    Leszek Bal Member

    Joined:
    Oct 14, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    There is no cluster, secondary DNS is on OVH. Domain added in OVH client panel. I manually add allow-transfer [ IP-Here; }; to /etc/named.conf and now domains are transferred correctly.
     
    #3 Leszek Bal, Jan 27, 2016
    Last edited by a moderator: Jan 27, 2016
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the domain names are now transferred correctly. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    So... I've the same situation, a cPanel server running the DNS as master and then another machine somewhere else running as slave using debian.

    I've modified `/etc/named.conf` to allow the zone transfer and it works. My question is: won't WHM / cPanel remove my settings from that file after someone updates the DNS zone or a WHM upgrade? How can I make sure WHM/cPanel will keep them?

    Thank you.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It should only update when you manually run the "/scripts/rebuilddnsconfig" script.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Is there a better option? Is there any template file for the dns config like there's for Dovecot config for instance? If yes, where can I find it?

    I really need to make sure that config is still there even after a rebuild, a cPanel upgrade or whatever might come on the way.

    Thank you.
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    A cPanel update will not overwrite the entries to the /etc/named.conf file. This only happens if you manually run the "/scripts/rebuilddnsconfig" script. That said, I suggest opening a feature request for the ability to edit and preserve changes to the /etc/named.conf file via Web Host Manager:

    Submit A Feature Request

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice