Creating Nameservers in Cpanel WHM

This article describes the steps taken in order to use your WHM/Cpanel system as a DNS server.


  1. A valid, registered domain.
  2. One IP Address for each Name Sever.
  3. Name Servers have been registered via the domain registrar's control panel (see your domain registrar for more information).

WHM Setup


In this setup process we will be using 'ns1.domain.com and ns2.domain.com', again this should be registered at your registrar as Nameserver records.
  1. Login to your WHM panel as the root user.
  2. On the left panel under Server Configuration select Basic cPanel/WHM Setup.
  3. Scroll down to the bottom, you should see a Nameservers area.
  4. Enter your Nameservers in the Primary Nameserver and Secondary Nameserver fields ex: ns1.domain.com & ns2.domain.com.
  5. Click Save to complete the setup.

WHM DNS Zone Setup


This process assumes you have already created a domain account for your domain, for more information regarding this see: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CreateAccount.
  1. In the left panel of the WHM system click on Add a DNS Zone under the DNS Functions category.
  2. Under the Networking Setup category click on Nameserver IP's.
  3. Assign your domains Nameserver records to each specific ip address, make sure to click the assign button.
  4. On the left panel browse to the Service Configuration category and select Nameserver Setup.
  5. Click Proceed and the DNS services will be started on the server.

For additional information see: