Create and setup your own name (DNS) servers in WHM

Setting up your own private nameservers on a cPanel server has many benefits, most importantly enabling all of cPanel’s built in DNS tools which can make DNS changes much easier.

This guide will show you how to set up and register new private nameservers on a cPanel server using the WHM (Web Host Manager) interface.

Most users will want to use a domain name they already own, often the same domain name that is being used for the hostname of the server that will be running the private nameservers.

For this example, we will use a fake domain called Our server is called and we will be setting up and

There are three parts to setting your private nameservers:

  • Configuring the server to accept and process the DNS requests
  • Registering your your new nameservers at the registrar who controls the domain name
  • Pointing domains at those new nameservers.

Step 1: Configuring the Server

When you start the WHM Setup Wizard you will get to a page that shows you your existing IP address. You will have been sent an email with a second IP address, and you should enter that one to add this second IP to your server. The following page asks about name servers. You need to enter the name servers you wish to use and associate an IP with each of them e.g.: 203.x.x.x 203.x.x.x

You should check the box to add an entry for each of them in the DNS server. You can also add an entry in the DNS for the hostname of the server.

Go to Step 2

If you have not done this during the setup please follow the below, although this may not change all instances of the incorrect details and may require manual modifications of files on your server.

Log in to your server’s WHM interface and find the navigation section on the left called Basic cPanel & WHM Setup, under Server Configuration. This is the first item on the left navigation bar.

At the bottom, you will find the Nameservers section.

Enter Name Server 1:

Enter Name Server 2:

Below you will see 'Add A Entries for Name servers & Hostname'. Check the box next to that and add the IP for each of the name servers.

When you are finished assigning IP addresses, make sure to click Save Changes (3).

Step 2: Registering Your Private Nameservers

The vast majority of registrars do not charge their customers any extra fee for registering nameservers as long as the main domain name itself has already been purchased.

If you registered the domain yourself:

If you are setting up nameservers for a domain name that you own, which you also purchased yourself at a domain registrar, you will need to login to your account at that same registrar and use their tool to register the new names.

Once you have found the tool/page you need at your registrar’s web site the registration itself is very straightforward. Most registrars use a simple form where you enter in the name of the nameserver you wish to create and the corresponding IP address.

Create two name servers:


Point them to the same IP address if that is allowed.


Step 3: Pointing Your Domain(s) at Your New Nameservers

The final step in creating your own nameservers is to start using them by correctly pointing your domain(s). Log in to your registrar and set your domain so that it uses your new nameservers. 

Please note that if you change a domain’s nameservers the domain will temporarily stop working while the new settings propagate throughout the entire internet. If downtime is a critical issue for your domain we recommend you make this during a weekend or late at night when traffic is likely to be low.

Now that your domain is pointing at your server’s nameservers you can use the DNS tools in the WHM and cPanel interfaces to modify your zone files!

When you load this screen for the first time you may see that two nameservers. You need to change these.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Installing NGinx on a CPanel Server

To install NGinx on cPanel servers we recommend you use the product NGinxCP available at...

Expanding Disk Space on VPS (SSD)

If you have requested additional SSD space, there may be a need for you to manually expand the...

Maintaining a CPanel/WHM VPS

If you have got a CPanel/WHM based VPS and are not sure on how you should monitor and maintain it...

Connect to your VPS via SSH

Learn how to connect to your Linux VPS via SSH. This guide will give you the process to connect...