MyDNS-NG (MyDNS) is DNS server programming for Linux servers. MyDNS utilizes a database to store the server’s DNS zone documents, which enables it to proficiently oversee huge numbers (several thousands) of zone records.

 

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

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

 

Notes:

  • MyDNS does not expel BIND from the framework. cPanel and WHM requires the BIND administration.
  • MyDNS does not support Domain Name System Security Extensions (DNSSEC) or PostgreSQL®

 

Install MyDNS

 

Note: During the cPanel and WHM installation process you cannot install MyDNS

 

From the WHM interface

 

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

  • Navigate to WHM’s Nameserver Selection Interface (WHM >> Home >> Service Configuration >> Nameserver Selection).
  • Select MyDNS.
  • Click Save.

 

From the command line

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

/scripts/setupnameserver mydns

 

 Return to MyDNS from another DNS server

 

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

 

Warnings:

  • This script will clear the rr database table, which will cause DNS lookup errors until your server refreshes that table.
  • 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:

/scripts/restartsrv_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 and WHM’s execution of MyDNS can work with a remote MySQL server.

 

To set up the connection to the remote MySQL server, navigate to WHM’s Manage MySQL® Profiles interface (WHM >> Home >> SQL Services >> Setup Remote MySQL Server).

When you run MyDNS on a dedicated MySQL server, each connected server 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.

 

Troubleshoot MyDNS

 

Since MyDNS utilizes a MySQL database to store zone records, any issue with MySQL will influence MyDNS’s presentation. If you experience issues with MyDNS, first verify that MySQL reacts.

 

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

  • Navigate to WHM’s Show MySQL Processesinterface (WHM >> Home >> SQL Services >> Show MySQL Processes). If MySQL responds, the system will display the SHOW PROCESSLIST query.
  • Run the following command as the root user:
netstat -tap | grep mysql

 

If MySQL responds, the system will return information that resembles the following example:

tcp        0      0 *:mysql                     *:*                         LISTEN      17280/mysqld

 

To troubleshoot MyDNS further, check the following error logs:

  • /usr/local/cpanel/logs/error_log — The WHM error log.
  • /var/log/messages — The MyDNS error log.
  • /usr/local/cpanel/logs/dnsadmin_log — The dnsadmin error log. WHM’s dnsadmin service interacts with DNS zone files.

 

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)