Install and manage MyDNS in cPanel

Last modified: August 2, 2020
You are here:
Estimated reading time: 2 min

In this documentation, we can discuss about how to install and manage MyDNS in cPanel.  MyDNS is a DNS server software used in Linux servers. It is also referred as MyDNS-NG. MyDNS uses a database to store the server’s DNS zone files. Therefore, it acts as an efficient nameserver for servers or DNS clusters that store large numbers of zone records.

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

1) cPanel & WHM version 11.32 or later.

2) MySQL® version 5.0 or later.

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

 

Installation

To install MyDNS perform the following steps:

1) Login to WHM.

2) Select Nameserver Selection (Home >> Service Configuration >> Nameserver Selection)

3) Select MyDNS.

manage MyDNS

 

4) Click Save.

 

Import and Restart

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

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

    /scripts/importmydnsdb –force

2) Then a confirmation email should be received when this command finishes.

3) Run the following command as the root user to restart MyDNS:

    /scripts/restartsrv_mydns

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 hostnamerepresents the server’s hostname.

 

MyDNS on remote MySQL servers

cPanel & WHM’s implementation of MyDNS can function with a remote MySQL server. To set up the connection to the remote MySQL server, navigate to WHM’s Manage MySQL Profiles interface (Home >> SQL Services >> Setup Remote MySQL Server). Running MyDNS on a dedicated MySQL server, allows each connected server to maintains its own unique database of zone files. The MySQL server retrieves these zone files from the servers and does not retain a central copy of them. MyDNS uses a MySQL database to store zone files, then 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:

Navigate to WHM’s Show MySQL Processes interface (Home >> SQL Services >> Show MySQL Processes). If MySQL is responsive, the SHOW PROCESSLIST query will display.

 

If you need any further assistance please reach our support department.

 

Was this article helpful?
Dislike 0
Views: 12