Image by Mohamed Hassan from Pixabay

How Nameservers Are Configured On Dedicated Server & VPS?

Nameservers are used for masking IP addresses to domain names.

However, you can directly mask an IP address to different records of your domain name to make it functional. But doing a nameserver setup lets you enlist all domain records in your nameservers to use them on your domain (website & email, etc).

Configuring Nameservers On Dedicated Server (Via WHM):

  1. Log in to your Sangkrit.net account
  2. Open the Products page and click the Servers tab
  3. Click Launch (Next to the account, you want to use)
  4. Click Manage Server (WHM) 
  5. Click Proceed

Once, you are logged in to your server, follow these steps:

  1. Navigate to WHM’s Nameserver Selection interface via WHM -> Home -> Service Configuration -> Nameserver Selection
  2. Select the desired nameserver software
  3. Click Save

To configure your default nameservers:

  1. Navigate to WHM’s Basic WebHost Manager Setup interface via WHM -> Home -> Server Configuration -> Basic WebHost Manager Setup
  2. Enter the desired nameserver names in the text boxes
  3. Click Save

Remember, the name must prefix, a dot (.), and your domain. For instance: ns1.example.com and ns2.example.com.

Next, you will need to add the IP address to your nameservers:

  1. Navigate to WHM’s Add a New IP Address interface via WHM -> Home -> IP Functions -> Add a New IP Address
  2. Here you may either enter the main IP address or the IP address range (if you have one) in the New IP or IP range to add a text box
  3. Enter the subnet mask in the Select a subnet mask for the IP or IPs above to use the text box
  4. Enter any IP addresses that you wish to exclude in the IPs and IP ranges to exclude from the range of new IPs text box
  5. Click Submit

Creating A or AAAA entries on your nameservers:

  1. Access WHM’s Basic WebHost Manager Setup interface via WHM -> Home -> Server Configuration -> Basic WebHost Manager Setup
  2. In the Nameservers text box, click Configure Address Records
  3. Update the IP addresses in the appropriate text boxes
  4. Click Configure Address Records
  5. Click Close

Repeat the same steps for each of your nameservers.

For creating entries of your hostname:

  1. Again, move to WHM’s Add an A Entry for Your Hostname interface via WHM -> Home -> DNS Functions -> Add an A Entry for Your Hostname
  2. Enter your server’s IP address in the text box
  3. Click Add Entry

Next, you will need to register the same nameservers on your Sangkrit.net account from your domain management section. You will need to change the nameservers of your domain to use these new domain nameservers.

Simply log in to your Sangkrit.net account and follow these steps:

  1. Visit your products page, in the Domains heading, click Manage
  2. Locate the domain for which you wish to set up your nameservers
  3. Click the settings icon and select Manage DNS.
  4. Click the Settings tab and click Manage under the Host Names setting
  5. Click Add Hostname and enter the primary nameserver’s name (for example, ns1)
  6. Enter the primary nameserver’s IP address in the IP Address text box and click Add.
  7. Now, repeat the same steps for your secondary nameserver, this time use another nameserver such as ns2
  8. Click Save. Then, click Edit Nameservers and select Custom option
  9. Enter the full names of your two nameservers. (For instance: ns1.example.com and ns2.example.com)
  10. Click OK and then Save your changes

That’s it. The DNS propagation takes some time to spread the domain’s new DNS records across the internet. So, allow it twenty-four hours and your settings will start to work.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.