How to Configure Private Name Servers for VPS and Dedicated Servers

January 12, 2023 / Dedicated Server Virtual Server

This guide provides step-by-step instructions to set up private name servers on a VPS or dedicated server using WHM.

Steps to configure private name servers for VPS and Dedicated Servers:

  1. Get Name Server IP Addresses
    1. Use the dedicated IP addresses assigned to your VPS or dedicated server.
    2. If IPs are not available, contact WHUK support.
  2. Register Name Servers with Domain Registrar
    1. Log in to your domain registrar panel.
    2. Register private name servers (example):
      • ns1.yourdomain.com > Server IP
      • ns2.yourdomain.com > Server IP
    3. Save the changes.
      If your domain is registered with another company, contact them for name server registration.
  3.  Configure DNS Zone in WHM
    1. Log in to WHM.
    2. Go to DNS Functions > DNS Zone Manager.
      dns zone manager
    3. Select the domain and click Manage.
      manage
    4. Update the SOA record:
      • Primary Name Server: ns1.yourdomain.com
      • Email Address: valid admin email
    5. Add A records:
      • yourdomain.com > Server IP
      • yourdomain.com > Server IP
    6. Save the record.
      save record
  4. Update NS Records in WHM
    1. In the same DNS Zone:
      Update NS records to:

      • ns1.yourdomain.com
      • ns2.yourdomain.com
    2. Save the zone file.
  5. Set Default Name Servers for New Accounts (Optional)
    1. In WHM, go to Basic WebHost Manager Setup > Basic Config
    2.  Add:
      • yourdomain.com
      • yourdomain.com
    3.  Save settings.
  6. Wait for DNS Propagation
    DNS changes may take 24–72 hours to propagate globally.

That’s it. Private name servers are now configured for your VPS or dedicated server.

Spread the love