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.

Transfer to DNS slave

Discussion in 'Bind / DNS / Nameserver Issues' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    58
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It should only update when you manually run the "/scripts/rebuilddnsconfig" script.

    Thank you.
     
  7. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    58
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page