setup custom DNS / Name servers with WHM/Cpanel on my VM

setup custom DNS / Name servers with WHM/Cpanel on my VM

 

The first time you log into WHM you will have to complete a 6 step basic configuration.

 

  • Click on I agree/Go to Next Step 2.
  • Enter your email address at Server Contact Email Address (user@domain.com).
  • Make sure your VPS hostname is correctly configured at "Hostname" (configure a fully qualified domain name for the hostname, something like vps.yourdomain.com or server.yourdomain.com).
  • Click on Save & Go to Step 3 and after click on Go to Step 4.
  • Enter the custom nameservers at "Nameserver 1" and "Nameserver 2" (ex. ns1.yourdomain.com and ns2.yourdomain.com).
  • Check the box with Add "A Entries" for all Nameservers
  • Enter your VPS main IP at ns1 and the second IP at ns2. You can see your allocated IPs in your Hypanel account.
  • Check the box with Add "A Entries" for Hostname.
  • Click on Save & Go to Step 5 and after this click on Save & Go to Step 6.
  • Click on Finish Setup Wizard.

 

  • Go to "Tweak Settings" and check if "Enable WHOIS lookups for the nameserver IP manager" is off (if you don't do this, assigning an ip to a nameserver can take a long time).
  • Go to "Basic cPanel & WHM Setup" -> "Basic Config" and enter your main VPS IP to "Shared Virtual Host IP" (first field).
  • Go at the bottom of this page and make sure you have the correct nameservers entered at "Nameserver 1" and "Nameserver 2" then push the "Assign Ip Address" button for both the nameservers.
  • Don't forget to add this namerservers at your register, from where you bought your domain.

 

You are done with the nameserver configuration, don't forget to update cpanel before adding production accounts on the vps.

You can use the "Upgrade to Latest Version" button from WHM to make sure cPanel is up to date.

 

2. If you already did the 6 steps basic configuration but you didn't set up custom nameservers, please follow the next steps:

 

  • Go to "Tweak Settings" and check if "Enable WHOIS lookups for the nameserver IP manager" is off (if you don't do this, assigning an ip to a nameserver can take a long time).
 
  • Make sure your VPS hostname is correctly configured at 'Change Hostname' -> 'Current Hostname' (something like vps.yourdomain.com or server.yourdomain.com)

 

  • Go to "Basic cPanel & WHM Setup" -> "Basic Config" and enter your main VPS IP into first field like bellow:
 
  • Go at the bottom of this page and make sure you have the correct nameservers entered at "Nameserver 1" and "Nameserver 2" then push the "Assign Ip Address" button for both the nameservers.
  • Push the "Add an A entry for this nameserver" button for both the nameservers and Add Entry.

 

  • Click Save Changes at the bottom of the page
  • Don't forget to add this namerservers at your register, from where you bought your domain.

 

You are done with the nameserver configuration, don't forget to update cpanel before adding production accounts on the vps.

You can use the "Upgrade to Latest Version" button from WHM to make sure cPanel is up to date.

 

    • Related Articles

    • How to Set Up Private Name-servers in WHM/cPanel on VM's and Dedicated Servers.

      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. Most Customers with their own VM's or Dedicated servers with WHM/cPanel ...
    • How do I make my private name servers the default for all accounts I create in cPanel WHM?

      The following instructions will only set the name server entries in the DNS zones. Your customers must still update their name servers with their registrar. Reseller, Dedicated and VPS Hosting This sets up the default name servers for the entire ...
    • How to access cPanel/WHM on new VM

      So, you created a VM with cPanel/WHM and you cannot figure out how to access cPanel and WHM Since this is your cPanel/WHM server, you have root access to the install You would access with the following cPanel URL: https://[server-primary-ip]:2083 WHM ...
    • Setting Up Private Nameservers in WHM/cPanel

      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 ...
    • Setting Up Private Nameservers in WHM/cPanel

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