Setting up Nameserver DNS Using cPanel/WebHost Manager
cPanel's WebHost Manager® (WHM) lets you use your own domain name as a nameserver for websites your server hosts. To use your domain name, you have to set up a WHM Account for it first. For more information, see Creating Accounts in cPanel/WebHost Manager.
To Set up Nameserver DNS Using cPanel/WHM
- Log in to WebHost Manager using root for your username and your server's password at https://yourserverip:2087, where yourserverip is your server's IP address.
- Click DNS Functions.
- Click Edit DNS Zone.
- Select the domain name you want to use, and then click Edit.
- For the two rows with the menu displaying NS, edit the right-most columns to ns1.coolexample.com. and ns2.coolexample.com., respectively.
NOTE: You have to enter a "." after your nameserver for the DNS to work properly.
- In the Add New Entries Below this Line section, do the following in the first row:
- First field: Type ns1.
- Second field: Type 14400.
- Third field: Select A.
- Fourth field: Enter your server's IP address.
- First field: Type ns2.
- Second field: Type 14400.
- Third field: Select A.
- Fourth field: Enter your server's IP address.
- Click Save.
- Click Home, and then click Restart Services.
- Click DNS Server (BIND/NSD).
- Click Yes to restart the service. Allow a few minutes for the service to restart. DNS can take 24-48 hours to propagate once these changes have been made.
You now need to complete the following steps to use your domain name as a nameserver:
- Registering Your Own Nameservers/Hosts lets you use your domain name as a nameserver.
- Setting Nameservers for Your Domain Names uses your domain name as a nameserver for a domain hosted on your server.