Skip to content
Domains and DNS2 min read

What are nameservers?

Short answer

Nameservers are the DNS servers that hold your domain's records, such as A and MX, and answer queries for them. You set them at your domain registrar, which tells the whole internet where to ask for your site's address and mail server.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How they work
  2. Practical example: checking your nameservers
  3. Nameservers or an A record?
  4. Common problems
  5. On ArabyHost

Every domain has at least two nameservers, so if one fails the other still answers. When you change them, you hand the whole DNS zone to the new provider: the old records at the previous provider stop being used, even if they still exist there.

How they work

  1. You enter the nameservers in your account at the registrar.
  2. The registrar sends them to the extension’s registry, where they become NS records in the TLD zone (such as .com).
  3. When any DNS resolver looks up your site, it asks the TLD servers first, which refer it to your nameservers.
  4. Your nameservers answer with the requested record, such as the IP address in the A record.

Practical example: checking your nameservers

dig NS example.com +short
ns1.example-host.com.
ns2.example-host.com.

Or use the DNS lookup tool in your browser, no commands needed.

Nameservers or an A record?

Method What happens When to choose it
Change nameservers The host manages every record Simplest for most sites
Add an A record only DNS stays at the registrar or Cloudflare When other important records live there

Common problems

  • The change isn’t showing: DNS propagation takes time, because NS records in zones like .com are cached for up to 48 hours. See nameservers not updating.
  • Email stops after the switch: the old MX records weren’t recreated on the new nameservers; if your email lives elsewhere, add its records again.
  • Nameservers named after the domain itself: names like ns1.example.com need glue records at the registrar, or nobody can find their address.
  • A typo: one extra dot or missing letter in a nameserver name is enough to take the whole domain offline.

On ArabyHost

At your registrar, set the nameservers to:

ns1.arabicode.com
ns2.arabicode.com

The essential records are then created automatically, you edit them in the control panel’s DNS editor, and a free SSL certificate is issued without any action from you. Follow the nameserver change guide step by step.

FAQ

How long does a nameserver change take?

It often shows within a few hours, but can take 24 to 48 hours to reach every network because of caching at the extension's servers and at ISPs.

Will my site go down while nameservers change?

For a while some visitors may reach the old host and others the new one. Keep the site and email working in both places until propagation completes.

How many nameservers do I need?

At least two, and most registrars let you add more. Having several means queries still get answered if one goes down.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.