A Web.com Partner
Sign Up / Log In
Online Support Linux Servers

How to create and assign Name Servers in Linux VPS

You can use your own registered domain name as Name Servers for company branding purposes, so the records will look like the following:

  • ns1.mydomain.com
  • ns2.mydomain.com

You can do this in your Linux VPS through the hosting manager Console you selected upon activation, which can either be via ISPConfig Console or via cPanel / WHM Console. Instructions for both consoles are included in this guide.

To create and assign your own Name Servers in Linux VPS, these are the main steps you’ll need to do:

  1. Access your hosting manager Console
  2. Create your Name Servers
  3. Assign your Name Servers

Access your hosting manager Console

Your hosting manager Console can be accessed either via direct link or via Account Manager.

If via direct link:

  1. You can use the following address to access your respective login page:
    For ISPConfig Console: http://serverhostname/ipaddress:8080/
    For cPanel / WHM Console: http://serverhostname/ipaddress:2087/
    Replace “serverhostname/ipaddress” with your appropriate server hostname or IP address.
  2. Enter your username and password then click Log In.

If via Account Manager:

  1. Click Sign Up / Log In at the top of this page.
  2. Ensure that Account Manager is selected from the drop-down menu.
  3. Enter your username and password, then click Log In.
  4. Click on the Visit My Account button.
  5. Click on Servers from the menu at the top of the page.
  6. Click on the server plan you wish to manage. If you only have one plan, you will automatically be redirected to the management page.
  7. Click on the ISPconfig button for the ISPConfig Console or click on the cPanel button for the cPanel / WHM Console, then enter your username and password if asked.

Create your Name Servers

The steps in creating your Name Servers will differ according to the respective Console you are using.

If via ISPConfig Console:

  1. Click on the DNS tab from the top menu.
  2. Click on the Add New DNS Zone with Wizard button.
  3. Enter the required information under DNS Zone then click Create DNS-Record.

    Below is a description of the fields:
    Template Set this to “Default”.
    Server Select the appropriate server name from the drop-down list.
    Client Leave this blank.
    Domain Enter your registered domain name: e.g. mydomain.com
    IP Address Enter your VPS IP Address.
    NS 1 Enter your first name server: e.g. ns1.mydomain.com
    NS 2 Enter your second name server: e.g. ns2.mydomain.com
    Email Enter your contact email address: e.g. admin@mydomain.com
  4. You will be routed back to the DNS page.
  5. Under DNS-Zones, click on your newly-created Zone file.
  6. Click on the Records tab.
  7. Click on the +A button.
  8. In the Hostname field, enter your first Name Server with a dot in the end: “ns1.mydomain.com.
  9. In the IP-Address field, enter your VPS IP Address then click Save.
  10. Repeat steps 7 to 9 for your second Name Server: “ns2.mydomain.com.

If via cPanel / WHM Console:

  1. Click on Account Functions.
  2. Click Create a New Account.
  3. In the Domain field, enter your registered domain name.
  4. Type and Re-type a Password for the account.
  5. Enter an Email address then scroll down to the bottom of the page and click Create.
  6. A confirmation page will appear once done.
  7. Click on the Home option from the top menu.
  8. Click on DNS Functions.
  9. Click Edit DNS Zone.
  10. Under Choose a Zone to Edit, select the newly-added domain name then click Edit.
  11. A list of DNS Records will appear. You will need to set the records for the following:
    Domain Record Type Record to be set
    mydomain.com. NS Enter your first Name Server with a dot in the end: “ns1.mydomain.com.”
    mydomain.com. NS Enter your second Name Server with a dot in the end: “ns2.mydomain.com.”
    ns1 A Enter your VPS IP Address.
    ns2 A Enter your VPS IP Address.
  12. Scroll down to the bottom of the page and click Save.
  13. A confirmation page will appear once the settings have been correctly configured.

Assign your Name Servers

If the domain name you used in creating the Name Servers is not registered with Crazy Domains, contact your domain provider to add the records there. If the domain name is registered with us, assign the newly-created records by following the instructions below:

  1. Log In to your Account Manager and select Domains from the top menu.
  2. Click on the domain name you used for your newly-created Name Servers.
  3. On the Name Servers section, click on the menu button found on the right.
  4. Select Add Name Server from the drop-down menu.
  5. In the Host Name field, enter your first Name Server: “ns1.mydomain.com”, then add the corresponding IP Address in the field beside it.
  6. Click on the + Add Name Server option below it to add your second Name Server: “ns2.mydomain.com” and its corresponding IP address.
  7. Once done, click Update.
  8. Below the newly-added Name Servers, new Host Records will also be automatically added by the system.

    Important: For the new records to work properly, ensure that all other existing Name Server records set for the domain name are removed.

Note: All DNS updates will take up to 2 hours to resolve across the global networks. After you have performed this action please wait for the update to take full effect.

Congratulations! You have just created and assigned your Name Servers in Linux VPS.

Was this helpful? Yes No 81% of people found this helpful.
{"message":""}