BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to use MyDNS-NG_

Posted by Allura on 17 10 2019.

Overview
MyDNS-NG is a DNS server software designed for servers based on Linux. A database is used by MyDNS to store the DNS zone files of the server. This helps it to manage huge numbers of zone records efficiently.The following minimum requirements must be met in order to run MyDNS on your cPanel and WHM server:MySQL® version 5.0 or later.
cPanel & WHM version 11.32 or later.
BIND 
Install MyDNS
Using the WHM interface
You can install MyDNS using the WHM interface through the steps given below:Locate the WHM Nameserver Selection interface (WHM > Home > Service Configuration > Nameserver Selection).
Choose the MyDNS option.
Select the Save option. 
Using the command line
You can install MyDNS using the command line. Run the command mentioned below as a root user:/scripts/setupnameserver mydns 
Return to MyDNS from another DNS server
Perform the following steps to make the import and relaunch MyDNS:As a root user, run this command…

Overview

MyDNS-NG is a DNS server software designed for servers based on Linux. A database is used by MyDNS to store the DNS zone files of the server. This helps it to manage huge numbers of zone records efficiently.

The following minimum requirements must be met in order to run MyDNS on your cPanel and WHM server:

  • MySQL® version 5.0 or later.
  • cPanel & WHM version 11.32 or later.
  • BIND

 

Install MyDNS

Using the WHM interface

You can install MyDNS using the WHM interface through the steps given below:

  1. Locate the WHM Nameserver Selection interface (WHM > Home > Service Configuration > Nameserver Selection).
  2. Choose the MyDNS option.
  3. Select the Save option.

 

Using the command line

You can install MyDNS using the command line. Run the command mentioned below as a root user:

/scripts/setupnameserver mydns

 

Return to MyDNS from another DNS server

Perform the following steps to make the import and relaunch MyDNS:

  1. As a root user, run this command to force a DNS import: /scripts/importmydnsdb –force
  2. To restart MyDNS, run the following command as a root user: /scripts/restartsrv_mydns

 

MyDNS on your server

MyDNS is installed by the system to the directory /usr/local/cpanel/3rdparty/. After the installation is complete, the zone files are synced by the system in the directory /var/named/ with the MyDNS database records.

Every server that uses MyDNS contains a MySQL database for MyDNS of their own. The database name of the server relates to the mydns_hostname format, where the hostname stands for the hostname of the server.

 

MyDNS on remote MySQL servers

  • To configure a connection to the remote MySQL server, locate the WHM Manage MySQL Profiles interface at WHM > Home > SQL Services > Setup Remote MySQL Server.
  • If you setup MyDNS on a dedicated MySQL server, a unique database of zone files is maintained by every connected server. These zone files are retrieved by the MySQL server and no central copy is retained.

 

Troubleshoot MyDNS

A problem with MySQL will affect MyDNS’s performance since a MySQL database is used by MyDNS to store files. If you face any problems with MyDNS, make sure that MySQL is responsive.

Perform the following actions to confirm that MySQL is responsive to WHM:

  • Locate WHM’s Show MySQL Processes interface located at WHM > Home > SQL Services > Show MySQL Processes. The system will show the SHOW PROCESSLIST query is MySQL responds.
  • As a root user, run the following command:

netstat -tap | grep mysql

If MySQL is responsive, a similar information will be returned by the system:

tcp 0 0 *:mysql *:* LISTEN

 

Conclusion

To further troubleshoot MyDNS you can check the error logs. This documentation will guide you on how to successfully install and use MyDNS.