Introduction
You may want to transfer a domain's zone to another DNS server or cluster. This article provides the steps to enable AXFR for servers running the PowerDNS nameserver.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open
/etc/pdns/pdns.confin your preferred text editor. - Locate the
disable-axfrline. - Set the
disable-axfrvalue tono.disable-axfr=no
- Locate the
allow-axfr-ipsline.# allow-axfr-ips=127.0.0.0/8,::1
- Uncomment the line and replace
127.0.0.0/8,::1with the remote server's IP address.allow-axfr-ips=203.0.113.2
- Save the changes and exit the text editor.
- Rebuild the DNS configuration.
/usr/local/cpanel/scripts/rebuilddnsconfig
- If you have DNSSEC enabled for a domain, you will also need to disable
nsec3semantics for that domain.whmapi1 unset_nsec3_for_domains domain=$domain.tld
Please note that "$domain.tld" must be replaced with the DNSSEC domain enabled.