Setting Private name servers (Cpanel/WHM)

If you want your own name server such as ns1.mysite.net, ns2.mysite.net

Please follow the below steps to setup your own nameservers.

Step 1. Log into your domain manager account, via your domain registrar’s web site
(i.e. www.godaddy.com , www.enom.com , …)

Step 2: You will need to name your DNS server and insert a valid ip that is bound to your server. This will cause your server to get “mapped” on the Internet as being an operational DNS server.

For this example, my domain name is ‘mysite.net’ and the IP’s bound to my server are “75.126.196.138” (Primary IP) and “75.126.196.152” (Secondary IP). I will be using the hostname ‘ns1.mysite.net’ bound to the “75.126.196.138” IP, and ‘ns2.mysite.net’ bound to the “75.126.196.152” IP.

Note : The hostname ‘ns1.mysite.net’ and ‘ns2.mysite.net’ are not mandatory. You can use any name along with your domain name. The name ‘ns1′
is simply easy to remember for both the sys admin, and the customer.

Step 3: The last step is to basically say which DNS server is authorized to resolve the domain ‘mysite.net’ to an IP. We will have to input the hostnames that we specified in step 2, which are: ‘ns1.mysite.net’ and ‘ns2.mysite.net’.

Note: If you wish to use your DNS server to resolve other domains besides ‘mysite.net’ you should repeat only step 3, which is basically telling your domain registrar who is the authoritative DNS server for the domain.

Part 2: cPanel DNS Configuration

Now that we’ve established our DNS Internet Awareness through our domain registrar, we will have to configure cPanel to finalize our settings

Step 1. Login to your whm https://75.126.196.138:2087/ and then Main >> DNS Functions >> Add a DNS Zone

ns1.mysite.net 75.126.196.138
ns2. mysite.net 75.126.196.152

====================================

Main >> Server Configuration >> Basic cPanel/WHM Setup

Primary Nameserver & Secondary Nameserver

Click on “Assign Ip Address”

If it does not assign the right ip address then login to the server through ssh

edit
/etc/nameserversip

===================================
nano /etc/nameserverips

192.168.1.1=0
192.168.1.2=0
192.168.1.3=0

Change to

192.168.1.1=ns1.yoursite.com
192.168.1.2=ns2.yoursite.com
====================================

once the correct Ip are assigned to name servers

Click on “add A entery for this name server”

This will the A entry for nameservers.

================================
Check the nameservers IP

Main >> Networking Setup >> Nameserver IPs

It should showup the correct nameservers and their IPs

====================================
Ip Nameserver
192.168.1.1 ns1.yoursite.com
192.168.1.2 ns2.yoursite.com
====================================

  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

The password you provided is not correct. Trace Output: (root@***.***.***.***’s password: ==sshcontroloutput== sshcmdpermissiondeny

The above error troubles you sometimes while doing multiple transfer via Cpanel to Cpanel server,...

Fantastico is not installed at the default location

Today while installing fantastico on one of our server, We came across the following error....

Compress CPanel Domlogs log files

Before setting up compression of your logs you will want to have cpanel run the stats as often as...

Phpmyadmin failed (Cpanel) Warning: session_start() [function.session-start]: SQLite

Phpmyadmin fails to load and gives the below error. ==== Error ==== Warning: session_start()...

Found suspicious scripts in /tmp directory

Sometimes its very frustating to find how the suspicious files are stored in /tmp directory....