How to set up your nameservers (child nameservers and glue)

For server administrators · Updated 2026-10-29

On this page
  1. Before you start
  2. Steps: the domain uses this server's DNS (usual case)
  3. Steps: the domain stays at another DNS provider
  4. Good to know
  5. Common questions

Your customers point their domains at your nameservers, for example ns1.example.com and ns2.example.com. For that to work, those names must exist on the internet and point to your server. The installer prepares the server side; you finish it at your domain registrar.

Before you start

  • You know the nameservers you chose during the install. They are listed under Nameservers: in /root/panel-install-summary.txt and in Server Settings.
  • You can log in to the registrar of the domain the nameservers belong to (example.com).

Steps: the domain uses this server's DNS (usual case)

  1. At your domain registrar, open the page for child nameservers (also called "glue records", "host records" or "register nameservers").
  2. Create ns1.example.com with your server's IP address.
  3. Create ns2.example.com with your server's IP address.
  4. Set the nameservers of example.com itself to ns1.example.com and ns2.example.com.
  5. Wait for the change to spread. It usually takes from a few minutes to a few hours.

Steps: the domain stays at another DNS provider

When the installer sees that the hostname's domain is served by other nameservers, it does not create a zone for it on this server. It printed the records to add instead.

  1. At that DNS provider, add the A records the installer printed (the hostname, ns1 and ns2, each pointing to the server's IP).
  2. At the registrar, create the child nameservers ns1 and ns2 with the server's IP, as above.

Good to know

  • During the install, the server created the DNS zone for the nameservers' domain with A records for ns1, ns2 and the hostname, unless that domain is served elsewhere.
  • To change the nameservers later, open Server Settings (section Server), edit Nameserver 1 and Nameserver 2 and click Save settings. New DNS zones get the new names; zones that already exist keep their NS records, which you can edit in DNS Zones.
  • Resellers can have their own nameservers, set per reseller.
  • Both nameservers usually point to the same server IP. That works, but if the server is down, DNS is down too.

Common questions

My registrar asks for two different IP addresses.

Some registrars require it. If your server has a second IP address, use it for ns2. Otherwise ask the registrar to accept the same address for both.

How do I check that the nameservers work?

From any computer, run dig +short A ns1.example.com and dig +short NS example.com. The first should show your server's IP, the second your two nameservers.

Customers' domains do not resolve after pointing them here.

Check that the glue records exist at the registrar and that the domain has an account or a zone on this server.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.