Set Up DNS Services on cPanel

Traducciones al Español
Estamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.

cPanel is a commercial web-based control panel for server systems. It can help ease the burden of common system administration tasks such as website creation, database deployment and management, and more. This guide shows you how to set up your cPanel server to serve DNS records. These instructions should be done through your root WHM interface.

Set Up DNS Services on cPanel

Nameserver Selection

In your root WHM, under the Service Configuration section, click on “Nameserver Selection.” You are presented with this screen:

cPanel Nameserver selection screen.

You can choose from BIND, MyDNS or NSD; the advantages and disadvantages for each are displayed. If you are unfamiliar with any of them, select BIND, which is the easiest to work with.

Nameserver Records

To use your own nameservers (e.g.,, need to create those entries at your registrar first. The process for adding those can vary based on which registrar you are using. If you are unsure how to get these entries set up, you should contact your registrar’s support and ask them how to do so. You also need to add A records for your nameservers on your Linode through WHM. To do that, you need to log into your WHM as root, then navigate to the DNS Functions section, and click on Edit DNS Zone. You are presented with this page:

cPanel Edit DNS screen.

Click the domain you used when you set up your nameservers at your registrar and click the Edit button to get to the DNS Editor screen. On the DNS Editor screen, you want to add A records for your nameservers. To do this, you fill in the spaces at the bottom of the screen like so:

cPanel add NS entries.

Just make sure you use your own Linode’s IP address. You can add more than two nameservers if you like.

Using Linode’s DNS Manager as a Slave

When using your BIND install on cPanel as your master nameserver and the Linode DNS Servers as a slave, you want to set all of the nameservers at your registrar. You should have a list like this:


The DNS changes can take up to 48 hours to propagate.

To get your cPanel Linode ready as your master DNS server, you need to make a few additions/edits to your /etc/named.conf file.

The transfer of DNS records from your Master DNS server to the Linode DNS servers is done through AXFR queries. By default these are not allowed. Add these sections to options:

File: /etc/named.conf
allow-transfer {;;;;;
 also-notify {;;;;;

After your updates are complete, save and close the named.conf file.

Check that the configuration file is usable by issuing the command :

named-checkconf /etc/named.conf

If everything was done correctly, you should see no output. No output means everything is OK. If you get any errors, open the file and fix the reported issue. The errors are self-explanatory and point to the exact issue.

Once the check is OK, the BIND service needs to be restarted in order for the changes to be picked up.

On the left side in WHM under “Restart Services,” click DNS Server (BIND/NSD/My).

Click Yes to restart the service. Allow a few minutes for the service to restart.

You then want to begin adding your domains to the Linode DNS Manager as slave zones.

  1. Log in to the Linode Manager and click on the DNS Manager tab.

  2. At the bottom, click on the “Add a domain zone” link.

  3. On the bottom right corner of the next page, click the link titled “I wanted a slave zone.”

  4. On the slave zone page, you want to enter your domain name in the “Domain” box and your cPanel server’s main IP address in the “Masters” box.

    Linode slave zone screen.

  5. Click the “Add a Slave Zone” button.

    Once you save your slave zone, you see a new text field titled “Domain Transfers”. You can leave this empty.

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

This page was originally published on

Create a Linode account to try this guide with a $100 credit.
This credit will be applied to any valid services used during your first 60 days.

Your Feedback Is Important

Let us know if this guide made it easy to get the answer you needed.

Join the conversation.
Read other comments or post your own below. Comments must be respectful, constructive, and relevant to the topic of the guide. Do not post external links or advertisements. Before posting, consider if your comment would be better addressed by contacting our Support team or asking on our Community Site.