Skip to main content

How to reload zone file after manual editing

Comments

4 comments

  • cPanelLauren
    Hello, Most likely you need to reload the zones. Why this is happening, is cPanel expects that the zone file is created upon account creation and performs the reload of the zone/update of named.conf when the account's userdata is present. What nameserver are you using on the cPanel server you're moving the zones too? BIND or pdns? If you're using bind you'll want to most likely run rndc reload
    and pdns pdns_control reload
    if it's a change and pdns_control rediscover if it's a new zone file (i.e., it did not exist in the named.conf prior) more information on pdns_control commands can be found here:
    0
  • ithurtswhenIP
    Hello, Most likely you need to reload the zones. Why this is happening, is cPanel expects that the zone file is created upon account creation and performs the reload of the zone/update of named.conf when the account's userdata is present. What nameserver are you using on the cPanel server you're moving the zones too? BIND or pdns? If you're using bind you'll want to most likely run rndc reload
    and pdns pdns_control reload
    if it's a change and pdns_control rediscover if it's a new zone file (i.e., it did not exist in the named.conf prior) more information on pdns_control commands can be found here:

    Hi Lauren, Thanks for your reply. Neither of those commands work unfortunately . pdns_control doesn't exist as a command and rndc reload doesn't appear to work, I get the following output: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf) rndc: connect failed: 127.0.0.1#953: connection refused Bear in mind that while this server has the zone files, the server in question isn't actually the nameserver. I'm not sure if this makes any difference though.
    0
  • ithurtswhenIP
    Any update on this or do I need to open a support ticket? I'm fine with either but it seemed like an answer that might benefit the community.
    0
  • cPanelLauren
    I am so sorry, please accept my humblest apologies I completely missed your response here. pdns_control most certainly exists, if you're running PowerDNS. [root@server ~]# pdns_control reload Ok
    WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf) rndc: connect failed: 127.0.0.1#953: connection refused

    This error is typical when you're running named but for some reason, it was unable to start. In regard to the above error what is the output of the following: ps faux |grep named
    netstat -plan |grep ":953"
    What is the selection at WHM>>Service Configuration>>Nameserver Selection? If it is currently set to named or pdns what is the output of the following: /scripts/rebuilddnsconfig
    0

Please sign in to leave a comment.