Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Set up private nameservers for your VPS or dedicated server

This guide shows you how to make nameservers with your own domain, such as ns1.yourdomain.com.

Dedicated Servers2 min read14 steps3 screenshots

What are private nameservers?

Nameservers hold the DNS records of a domain. DNS is like a phone book for the internet. It turns a website name into a number that computers understand. Private nameservers use your own domain name, like ns1.example.com, instead of the name of a hosting company. They point to your own server.

You need root access to WHM for this guide. Root is the main administrator login of the server. You also need two IP addresses for the server. Your welcome email or Hostvento support can tell you which IPs you have.

Part 1: Make the names in WHM

  1. Log in to WHM as root at https://your-server-ip:2087.
  2. Type Basic WebHost Manager Setup in the search box. Open it.
  3. Find the nameserver boxes. Type ns1.yourdomain.com and ns2.yourdomain.com. Use your real domain.
  4. Click Configure Address Records next to each name, if the button is shown. This makes the DNS records for them in the server.
  5. Click Save Changes.
  6. Open Edit DNS Zone or DNS Zone Manager. Check that ns1 and ns2 each point to a different IP address of your server.

Part 2: Register them at your domain registrar

A registrar is the company where you bought the domain. The internet must know that your nameserver names exist. This is called a glue record, or a "child nameserver" or "host".

  1. Log in to your registrar. If the domain is with Hostvento, log in to the client area at https://secure.hostvento.com/clientarea.php.
  2. Open the domain, then look for Register Nameservers or a similar menu. In the client area, look under Domains.
    dns_manager_soa-1 (1)
    dns_manager_a_record-2
  3. Type ns1 as the name and enter the first IP address.
  4. Repeat for ns2 with the second IP address.
  5. Save.

Part 3: Use them

  1. Open the nameserver settings of each domain you want on this server.
  2. Choose to use custom nameservers.
  3. Enter ns1.yourdomain.com and ns2.yourdomain.com. Save.

It can take up to a day for the change to spread across the internet.

Tip: If a mistake happens, websites on those domains may stop loading. Write down the old nameservers first so you can put them back.

Quick recap

  • Private nameservers use your own domain name and point to your server.
  • Set the names in WHM and check the DNS records.
    whm_default_ns-3
  • Register the names with IPs at your registrar.
  • Point your domains to them and wait for DNS to spread.