setting up private nameservers in WHM/Cpanel

Step 1: configuring namservers for server through root WHM .

  •  Login to WHM root account
  • go to : Home »Server Configuration »Basic cPanel & WHM Setup
  • At the bottom, you will find the Nameservers section.
  •  Type the name of the nameserver you wish to set up  and click the Assign IP Address
  • and save changes.
  • Click the Add “A Entries” for all Nameservers 

Editing Nameserver IPs via SSH

cPanel stores the nameserver IP’s in a files located at you can also edit these files to setup private nameservers

File1 :cat /var/cpanel/nameserverips.yaml 1
count: ‘5’
zones:,,, 1
count: ‘5’

File 2: cat /etc/nameserverips

File 3: cat /var/named/ :this file should have these entries to work correctly 86400 IN NS 86400 IN NS

ns1 14400 IN A
ns2 14400 IN A

Step 2: Registering Your Private Nameservers with registrar

example : follow below link for hostgator

Registering private nameservers with hostgator

Step 3: Pointing The Domain at registered Nameservers (u knw)


2 thoughts on “setting up private nameservers in WHM/Cpanel

  1. you should publish more articles like this and you will be famous. you have the talent to become a super star. your article is superb. keep it up.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s