How to set up your nameservers (child nameservers and glue)
On this page
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.txtand 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)
- At your domain registrar, open the page for child nameservers (also called "glue records", "host records" or "register nameservers").
- Create
ns1.example.comwith your server's IP address. - Create
ns2.example.comwith your server's IP address. - Set the nameservers of
example.comitself tons1.example.comandns2.example.com. - 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.
- At that DNS provider, add the A records the installer printed (the hostname,
ns1andns2, each pointing to the server's IP). - At the registrar, create the child nameservers
ns1andns2with 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,ns2and 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.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to change the server hostname of the panel
Change the server's hostname in Server Settings; the system and mail server names follow and a new certificate is requested for the new name.
- How to install the control panel on Ubuntu
Install the control panel on a fresh Ubuntu 24.04 or 22.04 server with one command, answer the five setup questions and find your admin login.
- First steps after installing the control panel
A checklist for a new server - secure your login, set your brand and server settings, point the nameservers, then create a package and the first account.