Skip to content
Back to all guides

Domains

What are nameservers and how do they work?

Nameservers are the servers that answer DNS questions about your domain: which IP address the website lives at, where email should be delivered, and which records prove you own the domain. This is what they are, how they differ from DNS records, and how to change them without breaking your email.

The Snappyhost team Updated 2 min read
What are nameservers and how do they work?

What a nameserver is

Every domain name has a set of authoritative nameservers, usually two or more, listed at the domain registrar. When someone types your domain into a browser, their device asks a recursive resolver (their ISP's, or a public one like Cloudflare's 1.1.1.1 or Google's 8.8.8.8) for the address. The resolver works down from the root servers to the .uk or .com servers, which say "ask these nameservers", and the authoritative nameservers give the final answer from the domain's DNS zone. The resolver caches that answer for the record's TTL so the next lookup is instant.

A nameserver looks like ns1.example.com, and a domain's nameservers are usually a matching pair or trio: ns1, ns2, ns3. You can see any domain's nameservers with a WHOIS lookup or the command dig NS example.com.

The difference between DNS and nameservers

DNS is the whole system: the naming, the hierarchy, the resolvers and the records. Nameservers are the specific servers that hold and publish a domain's records. Changing nameservers moves the entire zone to a different provider. Changing a DNS record changes one answer inside the zone and leaves the nameservers where they are. Most day-to-day changes (pointing the website at a new host, adding a mail record) are record changes, not nameserver changes.

Who provides your nameservers

Usually one of three: the domain registrar, the web host, or a dedicated DNS provider such as Cloudflare. Registrar nameservers are the default and fine for simple sites. Hosting nameservers make sense when the host manages the site and the DNS together, as ours do for domains registered with us. Cloudflare's nameservers add a CDN and proxy in front of the site. Resellers and agencies often run private nameservers (ns1.theirbrand.co.uk) that point at the host's DNS, so clients never see the hosting company's name; that's included on our reseller hosting plans.

Nameservers publish DNS information for a domain. When you set authoritative nameservers at your registrar, you identify the service responsible for answering DNS questions about that domain. The individual records then tell clients where to find services such as the website and email.

Nameservers and records are different

An NS record identifies a nameserver. An A or AAAA record points a hostname to an IP address, while an MX record identifies mail delivery destinations. TXT records can carry verification and email policy information. Cloudflare's explanation of NS records describes the role of authoritative nameservers.

Changing the website's destination does not always require changing nameservers. If you keep the DNS provider, updating the relevant web records may be enough. Moving nameservers usually means preparing the whole zone at the new DNS provider first.

Before changing nameservers

Save the current DNS zone and list every service using it. Check website records, mail records, verification entries and subdomains. Recreate the required records at the new provider and verify them before switching the delegation at the registrar. If DNSSEC is enabled, coordinate the signing and registrar DS records with the DNS providers so old validation settings do not break the move.

Why changes take time to appear

Resolvers cache answers for their TTL. Different visitors may therefore use different cached answers during a change. Reducing a TTL helps only after the old cached value has expired. Keep the old service available for the agreed transition and check both the authoritative answer and what public resolvers return.

Keep email in the plan

A website may be hosted with one company and email with another. Do not replace working MX and related TXT records with a hosting provider's defaults unless email is deliberately moving too. Test incoming and outgoing mail separately from loading the homepage.

Our migration checklist includes DNS and mail checks. Agencies using reseller hosting can also use private nameservers under their own brand; ask the team which delegation and glue records your setup needs before changing them.

Nameserver FAQs

What is a nameserver used for?

Answering DNS queries for a domain: which IP address serves the website, which servers receive its email, and the TXT records used for verification and email security. Without working nameservers a domain resolves to nothing.

What is an example of a name server?

Registrar and hosting nameservers follow the pattern ns1.provider.tld and ns2.provider.tld. Cloudflare assigns pairs with names like ada.ns.cloudflare.com. A reseller's private nameservers might be ns1.agencyname.co.uk.

How do I find the nameservers of a domain?

Run a WHOIS lookup on the domain, or use dig NS yourdomain.co.uk from a terminal. Both show the authoritative nameservers currently set at the registrar. Our guide to WHOIS privacy explains what else a WHOIS record shows.

How long does a nameserver change take?

Registries usually publish the change within minutes to a few hours, but resolvers keep cached answers until the old TTL expires, so different visitors can see different results for up to a day or two. Lower the TTLs a day before a planned move, and keep the old service running until the new answers are everywhere.

Hosting that keeps up

Your domain and your hosting on one bill.

Search, register and transfer domains in the same panel as your hosting, with a UK team to call when DNS gets fiddly.

Read enough? Let us run the hosting for you.

Move to your own fast, isolated UK hosting with free zero-downtime migration and a real support team behind it.

Rated Excellent by UK customers

Rated Excellent on Trustpilot Excellent · 4.8 out of 5 · 84 reviews on Trustpilot

Our agency manages a number of sites for clients, so we need an efficient, easy-to-use platform. The team have been super helpful through set-up and migrations, all for an unbeatable price.

Josh Trustpilot

Snappy are great! They always fix our problems straightaway and without any fuss!

Anne Trustpilot

Super helpful team and always provide a five-star service. Can't recommend using them enough.

Riley Williams Trustpilot

I must have tried every hosting company out there. Snappy Host has delivered on their promise with excellent speeds, excellent uptime and excellent UK support. I highly recommend them 100%.

Ian Barber Trustpilot

Snappy Host provide hosting with fantastic and friendly support. The range of services is great and their support is quick and helpful. I have many sites with Snappy.

Simon Clay Trustpilot

I have been a customer for several years. I recently had challenges putting my website live and was helped by Tom, whose professionalism and dedication exceeded my expectations. Snappy Host sets a high standard for excellence.

PDA Trustpilot

Moved to Snappy Host from Heart, and it was the best decision I have ever made! Really supportive and helpful team who helped me get my emails set up for all my customers with no hassle. 10/10.

Duncan Matthews Trustpilot

Snappyhost are first rate. Their service is both professional and yet also personable. You know you are talking to people who know what they are doing, and they have always been on hand when we have needed advice.

Castle Steel Buildings Trustpilot

Fantastic support. Great speed at unbelievable value.

Ron Finnegan Trustpilot

I can't rate the guys at Snappy Host highly enough. They go above and beyond to help, and I couldn't run my websites without them. Highly rated.

Customerroy charles Trustpilot

SnappyHost support is consistently great. I have used them to host my website, which has grown substantially over the years. My site is really fast thanks to the tools they installed, and whenever there is an issue they sort it out. Amazing service.

The Professional Traveller Trustpilot

Snappy Host is terrific. Tom, Luke and Mark all went above and beyond to help me, and fixed an issue I had had for over two years. If you want fast, helpful service as well as lightning-fast websites, look no further.

Simon M Trustpilot

Perfect services. Reliable. Top-notch customer support.

Miroslav Trustpilot

I have found the team at Snappy Host to be very helpful. A quick chat message or email and they are on the ball resolving any issues. No long, complicated process to reach them.

Segilola Salami Trustpilot

Absolutely excellent company that goes above and beyond, and have always helped me virtually instantly when I have needed them.

DJ Eclypse Trustpilot

I moved all my services to SnappyHost after a terrible experience with UK2. I can't fault them: great service, very reliable, good prices. Highly recommended.

MarkZ Trustpilot