<!-- https://www.gatehills.com/en/guides/nameservers -->
# Change the name servers of a domain

**In short**

- Nameservers decide who answers for your domain on the internet: Gatehills or another DNS provider.
- You change them in “My domains” → your domain → “Name servers”.
- With “Gatehills DNS (recommended)” you manage records, email forwarding and redirects here; with “My own name servers” you manage everything at your provider.
- Name servers named after your own domain (ns1.example.com) need glue hosts with their IP addresses.

On Gatehills you change the nameservers of a domain in the client area, on the **Name servers** tab of the domain. Choose the free Gatehills DNS or type the nameservers of another provider: from 2 to 12. The registry is updated within minutes. Other networks can keep the old nameservers for a few hours, sometimes up to 48 hours.

## What are nameservers?

Nameservers (also written name servers) are the servers that hold the DNS zone of your domain. The zone is the list that says where your website and email are. The registry of the extension publishes the names of your nameservers, so the whole internet knows whom to ask.

Every domain points to at least two nameservers, for redundancy. With the Gatehills nameservers you manage the zone here in the client area, in **DNS records**. If you use Cloudflare, a hosting provider or your own servers, enter their nameservers instead: the records are then managed there.

![The Name servers tab of example.com with the current nameservers and the Change name servers form](https://www.gatehills.com/media/400-cab1ee822f3f.webp)
*1. Name servers tab · 2. Gatehills DNS · 3. My own name servers · 4. Name server fields · 5. Save name servers*

## Change the name servers

1. **Open the Name servers tab** Choose “My domains” in the menu, click the domain and open the “Name servers” tab (1). Under “Current name servers” you see the ones in use now.
2. **Choose Gatehills DNS…** To use our DNS, select “Gatehills DNS (recommended)” (2). The names shown next to it are filled in automatically, and a basic zone is created for you.
3. **…or your own name servers** To use another provider, select “My own name servers” (3) and type the host names it gave you, one per field (4), for example “ns1.example.net”. Use “Add name server” for more: from 2 to 12 in total.
4. **Save** Click “Save name servers” (5). We send the change to the registry; the message “Name servers updated” confirms it. The change can take a few hours to spread on the internet.

## Gatehills DNS or your own nameservers?

**What works with each choice**

| Feature | Gatehills DNS | My own name servers |
|---|---|---|
| Where you manage the records | DNS records tab, in the client area | At your DNS provider |
| Dynamic DNS, email forwarding, redirects | Yes | No |
| Free SSL certificate | Yes | No |
| DNSSEC | One click: we sign the zone | You add the DS records of your provider |
| Price | Free with every domain | Depends on your provider |

### What changes when you switch

- **To your own name servers**: the records on the Gatehills DNS are no longer used. **DNS records**, **Dynamic DNS**, email forwarding, redirects and the free SSL certificate only work with the Gatehills name servers; their tabs show an exclamation mark. Recreate your records at the new provider before switching, so the website and email do not stop.
- **To the Gatehills DNS**: records you had at your previous provider are not copied. Recreate them in **DNS records**. On the other tabs, the button **Switch to the Gatehills name servers** takes you here with the choice already made.
- **Domain with Gatehills hosting**: the Gatehills option uses the hosting name servers, and the zone is managed in the hosting panel.

## How long does a nameserver change take?

We send the change to the registry as soon as you click **Save name servers**. The registry usually publishes it within minutes. Resolvers around the world keep the old answer in their cache, so the switch can take a few hours, sometimes up to 48 hours.

During that time some visitors reach the old nameservers and others the new ones. That is why both should hold the same records until the change is complete.

## What are glue records?

A glue record (or glue host) is a nameserver named after the domain it serves, such as `ns1.example.com` for `example.com`. Resolvers cannot find `ns1.example.com` without first asking that same domain. So the registry stores the IP addresses of the host directly: this is the "glue".

You only need glue records if you run your own nameservers under your own domain. With the Gatehills DNS, Cloudflare or a hosting provider you do not need them. Delegation and glue are described in [RFC 1034](https://www.rfc-editor.org/rfc/rfc1034), the DNS standard.

![The glue hosts section with ns1 and ns2.example.com and the form to add or update a host](https://www.gatehills.com/media/401-1fe4ff9e79a6.webp)
*1. Registered hosts · 2. Name under the domain · 3. IP addresses · 4. Save host*

## Create name servers with your own domain name (glue hosts)

1. **Open the glue section** At the bottom of the “Name servers” tab open “Name servers with your domain’s name (glue hosts)” and click “Show registered hosts”. The list (1) shows the hosts already registered under the domain.
2. **Write the name** In “Add or update a host”, type only the first part in “Name under the domain” (2), for example “ns1”: the domain is added for you.
3. **Write the IP addresses** In “IP addresses” (3) type the public IPv4 and IPv6 addresses of the server, separated by commas (up to 13). They replace the current ones.
4. **Save and use the host** Click “Save host” (4). Repeat for “ns2”, then go back to “My own name servers” and enter “ns1.example.com” and “ns2.example.com”.

> **Common mistakes**
>
> - **IP address instead of a name**: name servers are host names (`ns1.example.net`), not IP addresses.
> - **Only one name server**: you need at least 2.
> - **ns1.yourdomain without a glue host**: the error **create this host with its IP addresses first** means you must add it in the glue section before saving.
> - **DNSSEC still on**: if you see **DNSSEC is active on Gatehills DNS: turn it off before changing the name servers**, turn it off in **Privacy & DNSSEC** first and wait until it is off.
> - **Deleting a host in use**: a host used as a name server cannot be deleted; change the name servers first.
> - **Switching without copying the records**: the website and email stop until the records exist on the new name servers.

### How long does a name server change take?

The registry is updated within minutes, but other networks may keep the old name servers for a few hours, sometimes up to 48 hours.

### Do I need glue hosts if I use Cloudflare?

No. Glue hosts are only needed for name servers named after the domain itself, such as `ns1.example.com`. With the Gatehills DNS or an external provider you do not need to do anything there.

### Why can I not add glue hosts?

Some registries do not allow child name servers with IP addresses for their extension; the page says so. Hosts can also be changed only while the domain is active.

### Someone in my team cannot change the name servers. Why?

Changing name servers requires the DNS function. Ask the primary user to give it to them. See [people and account](/en/guides/team-members).

### Is the Gatehills DNS paid?

No, it is included with every domain registered with us.

### Can I change the nameservers of many domains at once?

Yes. Use **Bulk operations** at the top of **My domains** to set the same nameservers on several domains. See [change many domains at once](/en/guides/bulk-domain-operations).

**Related guides**

- [Manage the DNS records of your domain](/en/guides/dns-records)
- [Protect your domain with DNSSEC](/en/guides/dnssec)
- [Change many domains at once](/en/guides/bulk-domain-operations)
- [Redirect your domain to another address](/en/guides/web-redirects)
