Hello guys,
This post will help you to setup something like ns1.yourdomain.com and ns2.yourdomain.com as your own name servers. Once your nameservers are setup clients can then use your own private nameservers for their domain resolution.
Before going to setup check requirements as below.
1. You have a cPanel+WHM with root access.
2. Access to your domain registrar's panel.
3. At least 1 IP address (2 recommended).
4. Bind DNS service must be running in WHM server.
Follow the steps as below to setup Name Servers.
1. login to your domain registrar's management and find the domain name and click on the function (NameServers) that enables you to create or register a subdomain or nameserver like ns1.yourdomain.com and ns2.yourdomain.com as nameservers.
2. Point ns.yourdomain.com and ns2.yourdomain.com IP of your VPS. (point ns2.yourdomain.com if you have second IP address otherwise just point both to single IP of your VPS)
3. These registrations may take a few days to propagate. Check that you can ping ns1.yourdomain.com and it is resolving back to your server's IP.
4. Now login to WHM & go to Basic cPanel & WHM Setup. Scroll down the page to see the Nameservers.
Simply put your own name servers in these boxes:
Nameserver 1 Box: ns1.yourdomain.com
Nameserver 2 Box: ns2.yourdomain.com
5. Click on Save button.
You have done!
Enjoy !!!