How to set up custom/private name servers using my own brand/domain?

This guide will help you setting up custom name servers using your own domain name.

--------------------------------------------------------------------------------------------
Note:
--------------------------------------------------------------------------------------------

If you only have two name servers and two name server IPs, do not set up ns3 and ns4 entries.

In the tutorial below we have demonstrated setting up custom name servers with 4 name servers and IPs. If you are setting up 2 name servers, do not set up the records for nameserver 3 and 4 and ns1 and ns2.


--------------------------------------------------------------------------------------------
Custom Name Servers
--------------------------------------------------------------------------------------------

To set up custom name servers in your brand, you need to complete following four steps:


Step 1 
You need to 'register' the name servers before you can use them.

Go to your domain registrar and set up 'child name servers' using following details. Some registrars may refer to this as 'glue' records.


Nameserver 1 Hostname: ns1.yourdomain.com
Nameserver 1 IP: ns1-IP

Nameserver 2 Hostname: ns2.yourdomain.com
Nameserver 2 IP: ns2-IP

Nameserver 3 Hostname: ns3.yourdomain.com
Nameserver 3 IP: ns3-IP

Nameserver 4 Hostname: ns4.yourdomain.com
Nameserver 4 IP: ns4-IP

The IPs for the nameservers have been sent to you via email after your hosting account was activated.


Step 2
Set up your reseller hosting to use the custom name servers.


To do this, log into your WHM and go to Basic cPanel & WHM Setup from left sidebar under Server Configuration. Type in your new custom name servers to be used as nameservers of your entire account and click save changes.

Your reseller hosting is now ready to use your custom name servers.


Step 3
Your main domain may still be using old name servers assigned during account setup in the DNS records of your hosting. It is time to change them to your custom name servers.


Log into your WHM and go to Edit DNS Zone > select 'yourdomain.com' to edit from left sidebar under DNS Functions. On the next page, an advanced dns editor will appear.


You need to add NS records using the hostnames of your custom name servers as mentioned below:


yourdomain.com. 86400 IN NS ns1.yourdomain.com.
yourdomain.com. 86400 IN NS ns2.yourdomain.com.
yourdomain.com. 86400 IN NS ns3.yourdomain.com.
yourdomain.com. 86400 IN NS ns4.yourdomain.com.

IMPORTANT! Remove any other NS record entries.


Next, you need to add A records for your custom name servers with the custom name server IPs on the same place:


ns1 86400 IN A ns1-IP
ns2 86400 IN A ns2-IP
ns3 86400 IN A ns3-IP
ns4 86400 IN A ns4-IP

The IPs for the nameservers have been sent to you via email after your hosting account was activated.


Step 4
Now change the name servers of yourdomain.com to your custom name servers at your domain registrar to start using your custom name servers.

You are all done.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to set up a DMARC record?

DMARC settings simply tell a recipient server how to handle emails from a servers that do not...

How to set up MX records

If you want to use a different email server, you will need to change the MX records & SPF...

What is overselling?

Overselling means reselling unused resources. Let's assume you have a reseller hosting with 10GB...

How to create hosting accounts (cPanel accounts) and hosting packages

You will need to create a package in your WHM before creating a new hosting account. Every...

How to log into a client's cPanel account from WHM?

You can access your client's cPanel account as a reseller without knowing your client's password:...