| META TOPICPARENT
Using MyDNS-NG with cPanel & WHM
For cPanel & WHM 11.32
What Is MyDNS-NG?
MyDNS-NG is DNS server software for Linux servers. You can learn more about it at the MyDNS-NG website.
MyDNS-NG uses a database to store the server's DNS zone files. This makes it an efficient nameserver for servers or clusters that need to store large numbers (hundreds of thousands) of zone records.
Requirements for using MyDNS-NG with cPanel & WHM
In order to operate on your cPanel & WHM server, MyDNS-NG requires:
MyDNS-NG does not support DNSSEC.
- cPanel & WHM 11.32 or later
- MySQL 5.0 or later — PostgreSQL support is not yet available.
- BIND — MyDNS-NG does not remove BIND from the system. BIND is a base requirement of cPanel & WHM.
Currently, there is no way to install MyDNS-NG by default during the cPanel & WHM installation process.
You may install MyDNS-NG using the WHM Nameserver Selection screen:
Alternatively, you may install MyDNS-NG on the command line, using the following commands:
- Select MyDNS.
- Click Save.
After you install MyDNS-NG, the system will keep the zone files in
/scripts/importmydnsdb — This script switches the system from your current nameserver to MyDNS-NG. It parses your BIND zone files and imports them into a MySQL database.
- By default, this script does not overwrite any existing MyDNS zone files unless you pass the
/scripts/chkmydns — This script checks the MyDNS-NG configuration file (
/etc/mydns.conf) to make sure the password and configuration are valid.
/usr/local/cpanel/bin/build_mydns_conf — This script sets up the MyDNS database, user, and password for the first time.
/scripts/exportmydnsdb — If you already have MyDNS implemented on your server, this script switches to cPanel & WHM's implementation of MyDNS-NG. The script exports your BIND zone files to the cPanel & WHM MyDNS-NG database.
/var/named in sync with the records in the MyDNS database.
Using MyDNS-NG with a dedicated MySQL server
cPanel & WHM's implementation of MyDNS-NG will work with a remote, dedicated MySQL server. You can use the WHM Setup Remote MySQL Server screen on the web server to set up the connection to the remote MySQL server.
When you run MyDNS-NG on a dedicated MySQL server, each connected web server will maintain its own unique database of zone files. The MySQL server will retrieve these zone files from the web servers, rather than retaining a central copy of them.
Managing and troubleshooting MyDNS-NG
On your server, MyDNS-NG is installed in
Each web server connected to MyDNS-NG has its own MySQL database for MyDNS. The web server's database is named according to the format
$hostname represents the server's hostname). For example, if your server is named
server1.example.com, its MyDNS database would be named
Because MyDNS-NG uses a MySQL database to store zone files, any problem with MySQL will affect MyDNS-NG's performance. If you experience problems using MyDNS-NG, first make sure that MySQL is responsive.
To troubleshoot MyDNS-NG, check the following error logs:
/usr/local/cpanel/logs/errorlog — The WHM error log
/var/log/messages — The MyDNS error log
/usr/local/cpanel/logs/dnsadmin_log — The error log for
dnsadmin, the WHM process that interacts with DNS zone files
- Set PAGETITLE = Using MyDNS-NG with cPanel & WHM