Introduction
Zone transfers are disabled by default on cPanel servers. The following procedure provides the steps needed to disable AXFR transfers if enabled.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open the
/etc/named.conf
file in your preferred text editor. - Locate the
options
section. - Change the
allow-transfer
value to"none"
.allow-transfer { "none"; };
Please note that there may beallow-transfer
entries in thezone
orview
sections, which also need to be set to"none"
. - Save the changes and exit the text editor.
- Rebuild the DNS configuration
/scripts/rebuilddnsconfig
- Restart the Bind service.
/scripts/restartsrv_named