How to Change Your Domain's Nameservers (NS)

Updated: 4 December 20264 min read3 viewsMarkdown

Nameservers (NS) tell the internet which servers hold your domain's DNS records. When you move a website or email to a new hosting service, pointing the domain's nameservers to the new service is usually the first job.

Illustration of a domain card whose nameserver entry is switched from an old server to a new one
Changing nameservers moves your domain's DNS from the old server to the new one.

What nameservers do and when to change them

When someone types example.com, their browser first finds the domain's nameservers and then asks those servers for the site's IP address. In other words, the nameservers decide who keeps your domain's "address book". You need to change them when:

  • You bought a new hosting plan and are moving your site there.
  • Your domain is registered elsewhere but your hosting is with Voligen.
  • You want to manage DNS with an external DNS provider, such as a CDN service.

If you only need to change a single record (for example, just the website's IP), leave the nameservers alone and edit that DNS record instead. See the "A, CNAME, MX, TXT records" guide in the knowledge base for the record types.

Before you start

  • Have the new nameserver hostnames ready. For Voligen hosting they are listed in your service activation email and in the service details under Client Area > Services.
  • If the domain is registered with another company, make the change in that company's panel; the steps are similar.
  • If you use email, make sure the MX records already exist at the new DNS host, or incoming mail may stop after the switch.
  • The change can take up to 24 hours to apply worldwide, so a quiet time of day is best.

Changing nameservers in the client area

  1. Log in to the client area and open Domains.
  2. Click Manage next to the domain. For a quick edit from the list you can also use Change Nameservers from the row's More actions menu.
  3. Switch to the Nameservers tab.
  4. Select Use Default Nameservers for Voligen hosting, or Custom Nameservers to use another provider's nameservers.
  5. Fill in Nameserver 1 and Nameserver 2. If your provider gave you more, use fields 3 and 4 as well.
  6. Click Save Nameservers. A confirmation message appears when the update is accepted.
Three-step flow showing the manage button in the domain list, the nameservers tab and the save button
1: pick the domain, 2: choose the mode on the Nameservers tab, 3: enter the hostnames and save.
Note

At least two nameservers (primary and secondary) are required. Enter them as ns1.example.com, without http:// and without a trailing dot.

How do I check the change?

After saving, you can check from the command line whether the domain already uses the new nameservers:

# Windows (Command Prompt)
nslookup -type=ns example.com

# macOS / Linux
dig NS example.com +short

If you see the new nameservers, the change is live for your connection. If you still see the old ones, wait a little: this is normally caching. Our DNS propagation guide explains why.

Warning

Once you switch nameservers, every record at your old DNS provider (A, MX, TXT and so on) stops being used. If you rely on an external email service or verification records, add them to the new DNS first.

Troubleshooting

SymptomLikely causeFix
"At least two nameservers (primary and secondary) are required."The second field is emptyEnter both a primary and a secondary nameserver.
An error appears when savingTypo, or the nameserver is not known to the registryCheck the hostnames; if it persists, open a support ticket.
The site still loads from the old serverDNS caching, propagation timeWait up to 24 hours and flush your computer's DNS cache.
Email stopped arriving after the changeMX records missing at the new DNSAdd the correct MX records at the new DNS host.

Frequently asked questions

How long does a nameserver change take?

The panel saves it immediately, but DNS servers across the internet can take from a few minutes up to 24 hours to pick it up. In the meantime some visitors may reach the old server and others the new one.

Will my site go down while I change nameservers?

Not if the site and mailboxes are already set up on the new server. Keeping both servers running for a while during the move is the safest approach.

Can I use nameservers on my own domain (ns1.example.com)?

Yes. That requires child nameservers (glue records) under your domain, which you set in the Child Nameservers section of the domain details. Most people do not need them.

How do I go back to the default nameservers?

Use Reset to Default Nameservers on the Nameservers tab and save.

If you get stuck, contact us or open a support ticket from the client area. Looking for a new domain? Try our domain search.

Was this article helpful?
Thank you for your feedback.