Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Changing nameservers and glue records

Module 2: Nameservers and zones · Reading time: 8 minutes

Learning objective: After this lesson, you'll be able to change nameservers safely, explain what a glue record is, and recognise why a registry might refuse a change.

Key concepts: nameserver change via the registrar, glue record, own nameservers (such as ns1.example.com), predelegation check by the registry, lame delegation

When do you change nameservers?

You change a domain's nameservers when you want to move DNS management to another party. For example:

  • you're switching to a different hosting provider and want them to manage the DNS;
  • you want to use a DNS service such as Cloudflare;
  • a website platform asks you to point the nameservers to them;
  • you're moving back to your registrar's default nameservers.

It's a big step: after the switch, the new party determines all records for your domain, including those for email. If you only want your website or only your email to run elsewhere, you usually don't need to change the nameservers. In that case you just adjust a few records (modules 3 and 4).

The safe order

  1. Make a list or backup of your current records. Many control panels have a button to export the zone or create a backup.
  2. Set up the zone at the new party. Copy over all the records you need: website (A, AAAA, www), mail (MX, and the A record of the mail server if it falls under your domain), SPF, DKIM, DMARC, verification records, subdomains.
  3. Check the new zone by querying the new nameservers directly, before you switch. For example:

    dig @ns1.newprovider.example example.com MX

    If the new nameservers reply with the correct records, the zone is ready.

  4. Do you have DNSSEC enabled? If so, arrange first how the keys will move across. Turn off DNSSEC and wait until the old DS data has cleared from caches, or submit the new DS data at the same time. Otherwise the chain breaks and your domain becomes unreachable for validating resolvers (lesson 8.1).
  5. Change the nameservers at your registrar. Enter at least two. The registrar passes them on to the registry.
  6. Wait and check. Resolvers remember the old nameservers until the TTL of the delegation has passed. For .nl this is one hour, for .com two days. As a rule of thumb, allow for a few hours up to a day. Leave the old zone unchanged in the meantime.

Why might a registry refuse your nameservers?

Some registries check your nameservers before carrying out the change. This is called a predelegation check. DENIC (.de) is well known for this: if the new nameservers don't yet recognise your domain, or if the answers from the nameservers don't match up, the change is refused. Other registries may also carry out checks, or have rules about the number of nameservers.

The solution is always the same: set up the zone at the new party first, then try again. That's step 2 of the safe order. For .nl, you can test your nameservers in advance with a public tool such as Zonemaster.

Lame delegation

If the nameservers at the registry point to servers that don't recognise your domain, this is called a lame delegation. The resolver is referred to a server that has no answer. The result: your domain doesn't work, or only works sometimes (if one of the nameservers is correctly configured).

This happens, for example, when:

  • you changed the nameservers before the new party had the zone ready;
  • you left an old provider, who deleted the zone, while the nameservers still point to that provider;
  • there's a typo in a nameserver name.

You check this by querying each nameserver separately. Every nameserver should give a reply with the "authoritative" flag (in dig you'll see aa in the flags).

Own nameservers and glue records

You can also use nameservers with a name under your own domain, such as ns1.example.com and ns2.example.com. These are called own nameservers or vanity nameservers. This creates a chicken-and-egg problem:

  • to look up example.com, the resolver needs to go to ns1.example.com;
  • but to find the IP address of ns1.example.com, it needs to look in the zone of example.com.

That's why the registry includes the IP address alongside the nameserver name in the referral. This extra address is called a glue record:

; in the .com zone, at the registry (Verisign)
example.com.       NS  ns1.example.com.
example.com.       NS  ns2.example.com.
ns1.example.com.   A   192.0.2.53      ; glue
ns2.example.com.   A   198.51.100.53   ; glue

Glue is only needed if the nameserver falls within the domain itself (or within a domain that depends on the same delegation). If you use ns1.hosting.example for example.com, no glue is needed: that address is in the zone of hosting.example.

You arrange glue through your registrar, often under a button such as "Register own nameserver", "Child nameserver" or "Create host". If the IP address of your nameserver changes, you also need to update the glue at the registry. Otherwise resolvers will keep pointing to an old address.

Most domain registrants don't need their own nameservers. They're mainly used by hosting companies and resellers who want to display their own name.

In practice: what it looks like in a control panel

In My WebOké, go to My Domains, click on the domain, and click the pencil icon on the Nameservers card. You enter at least two nameservers. You first create own nameservers there using the button for an own nameserver (glue). With other registrars this is often called "Change nameservers", "DNS servers" or "Custom nameservers", and for glue "Child nameservers" or "Host records"; the fields are the same.

Summary

  • Changing nameservers moves management of all your records to another party.
  • Safe order: back up, set up the zone, test the new nameservers, arrange DNSSEC, then switch.
  • Some registries (such as DENIC) refuse a change if the new nameservers don't yet have the zone.
  • Lame delegation: the registry points to nameservers that don't recognise your domain.
  • Glue records are IP addresses at the registry for nameservers that fall within the domain itself.

Quiz

1. What's the first thing you should do when you want to point the nameservers to a new party?



2. When is a glue record needed?



3. You want to change the nameservers of your .de domain, but the registrar reports that the registry is refusing it. What's the most likely cause?



4. What's a lame delegation?



Exercise

Exercise Z2.3: Are all nameservers the same? Look up the nameservers of sidn.nl (the website of SIDN, the registry of .nl in the Netherlands). Then query the SOA record of sidn.nl at each nameserver separately (dig @ns1.sidn.nl sidn.nl SOA, or an online tool where you can choose the server). Enter the serial number for each nameserver, and whether they match.

Exercise Z2.3: Are all nameservers identical?



We don't store what you enter or what we find live. Your browser remembers your answers and whether you've passed the exercise. If you're signed in, we only save that you got the exercise (almost) right in My courses; you can also delete that there.

Further reading

These articles describe the situation at WebOké. The process is similar with other registrars.

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…