Some of your resellers may prefer to use their own nameservers instead of yours. This type of setup is more preferable on a VPS setup, and will allow a customer to use ns1.domain.com and ns2.domain.com.
You will need an IP address for each nameserver, as many registrars will not allow more than one nameserver per IP. Once this is done, register the nameservers with the domain registrar.
1 - Log into WHM and enable BIND/Named in both Nameserver Setup and the Service Manager then restart BIND in the Restart Services section.
2 - Add the ns1 and ns2 A-records to the existing zone file for the domain they are being based on. This is assuming that there are only two nameservers…you can technically add up to four.
3 - In the Basic cPanel/WHM Setup section of WHM, locate the nameserver setup and add the nameservers in their corresponding fields. You should not need to click on “Assign IP address.” or “Add A Entry for this Nameserver” as you already did this in the last step.
4 - Now you need to double-check a few things on the server. In /etc/resolv.conf:
Most hosting companies have a standard resolv.conf setup for external lookups, but you can set up the new nameservers instead:
domain domain.com
search domain.com
nameserver 123.456.789.123
nameserver 123.456.789.123
The two nameserver IPs should be the ones you just set up.
You will also want to check these two files:
/etc/wwwacct.conf
/etc/nameserverips
The wwwacct.conf should only be set if you intend on having accounts be set up automatically with the new nameservers. You should also set these nameservers in the user’s reseller configuration to make sure that accounts they create will have these nameservers as well.
5 - Once you’ve verified that everything is set up properly, go back to WHM and set up any necessary trust relationships/clusters applicable to your setup. You can verify your setup in the DNS zone section if you only see the domains in the cluster that you’ve set up.
6 - Once everything is complete, you should reboot the VPS to make sure that all the changes take place. When the VPS starts up again, restart Apache to make sure there are no errors.
7 - Now that the nameservers are set up, you can go back to the domain registrar and point the nameservers. While you are doing this, you will also want to go into WHM and modify the zone files for each domain on the VPS to make sure the NS records are pointing to the new nameservers.