Creating Nameservers in Cpanel WHM
This article describes the steps taken in order to use your WHM/Cpanel system as a DNS server.
Requirements:
- A valid, registered domain.
- One IP Address for each Name Sever.
- Name Servers have been registered via the domain registrar's control panel (see your domain registrar for more information).
WHM Setup
Note:
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.
- Login to your WHM panel as the root user.
- On the left panel under Server Configuration select Basic cPanel/WHM Setup.
- Scroll down to the bottom, you should see a Nameservers area.
- Enter your Nameservers in the Primary Nameserver and Secondary Nameserver fields ex: ns1.domain.com & ns2.domain.com.
- Click Save to complete the setup.
WHM DNS Zone Setup
Note:
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.
- In the left panel of the WHM system click on Add a DNS Zone under the DNS Functions category.
- Under the Networking Setup category click on Nameserver IP's.
- Assign your domains Nameserver records to each specific ip address, make sure to click the assign button.
- On the left panel browse to the Service Configuration category and select Nameserver Setup.
- Click Proceed and the DNS services will be started on the server.
For additional information see:
- Manage Nameserver IPs: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/NsIps
- Basic cPanel and WHM Setup: http://docs.cpanel.net/twiki/bin/view/11_24/WHMDocs/ServerConfig
- How to Edit a DNS Zone: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EditZone