Introduction
If your Named or PDNS configuration becomes corrupted and needs to be rebuilt, you can do so through the command line.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Move the current configuration file out of the way.
mv -v /etc/named.conf{,.$( date +%Y%m%d )}
- Run the
rebuilddnsconfig
script to rebuild the configuration and restart the DNS service automatically./usr/local/cpanel/scripts/rebuilddnsconfig
Comments
0 comments
Article is closed for comments.