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 example.com. Our server is called host.example.com and we will be setting up ns1.example.com and ns2.example.com.

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.:

ns1.example.com 203.x.x.x
ns2.example.com 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: ns1.yourdomain.com

Enter Name Server 2: ns2.yourdomain.com

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:

  • ns1.yourdomain.com
  • ns2.yourdomain.com

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 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How to Install Plesk On Windows

Set Up Plesk With A Single Click Looking for a swift and simple method to get your Plesk server...

How to install Plesk On Linux

When it comes to top-tier web hosting control for business needs, Plesk surely deserves a spot on...

How to Install cPanel on Linux

As the 'root' user, connect to the server's command line through SSH. Refresh the system's...

Installing NGinx on a CPanel Server Manually

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...