Setting up Nameserver DNS Using cPanel/WebHost Manager
Required: Before you begin, set up a WHM account for your domain name. For more information.
Follow these steps to use your own domain name as a nameserver for websites your server hosts.
-
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.your domain name. and ns2.your domain name., respectively.
Note: You have to enter a "." after your nameserver in this section 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
-
Then, in the second row, do the following:
-
First field: Type ns2
-
Second field: Type 14400
-
Third field: Select A
-
Fourth field: Enter your server's IP address
Note: Do not enter a "." after your ns1 and ns2 entries in this section.
-
-
Click Save.
Note: DNS can take 24-48 hours to propagate once these changes have been made.
Next steps
You now need to complete the following steps to use your domain name as a nameserver:
- Add my own host names lets you use your domain name as a nameserver.
- Change nameservers for my domains sets your domain name to your new custom nameserver.