MyDNS-NG (MyDNS) is DNS server software for Linux servers. It uses a database to store the server's DNS zone files. Because of this, MyDNS is an efficient nameserver for servers or DNS clusters that store large numbers (hundreds of thousands) of zone records.

MyDNS requires the following minimum configuration to run on your cPanel & WHM server:

  • MyDNS does not remove BIND from the system. BIND is a base requirement for cPanel & WHM servers.
  • MyDNS does not support Domain Name System Security Extensions (DNSSEC) or PostgreSQL®.

Install MyDNS

Currently, you cannot install MyDNS during the cPanel & WHM installation process. 

From the WHM interface

To install MyDNS through the WHM interface, perform the following steps: 

  1. Navigate to WHM's Nameserver Selection  interface (WHM >> Home >> Service Configuration >> Nameserver Selection).
  2. Select MyDNS.
  3. Click Save.

From the command line

To install MyDNS through the command line, run the following command as the root user:

/scripts/setupnameserver mydns 

Return to MyDNS from another DNS server

If you change to a different DNS server and then change back to MyDNS, you must run a forced DNS import and restart MyDNS. 

 To perform the import and restart MyDNS, perform the following steps:

  1. Run the following command as the root user to force a DNS import:

    /scripts/importmydnsdb --force

    You will receive a confirmation email when this command finishes. Do not proceed until you receive that email. 

  2. Run the following command as the root user to restart MyDNS:


MyDNS on your server

The system installs MyDNS to the /usr/local/cpanel/3rdparty/ directory. After installation, the system syncs the zone files in the /var/named/ directory with the records in the MyDNS database. 

Each server that uses MyDNS includes its own MySQL database for MyDNS. The server's database name corresponds to the mydns_hostname format, where hostname represents the server's hostname.

MyDNS on remote MySQL servers

cPanel & WHM's implementation of MyDNS can function with a remote MySQL server.

Troubleshoot MyDNS

Because MyDNS uses a MySQL database to store zone files, any problem with MySQL will affect MyDNS's performance. If you experience problems with MyDNS, first make certain that MySQL is responsive.

To confirm that MySQL responds to WHM, perform one of the following actions:

To troubleshoot MyDNS further, check the following error logs:

Additional documentation