Contents
Nameservers tell the internet who holds your domain’s DNS records. Once you enter your new host’s nameservers at the registrar, that host’s records (website, email, SSL validation) become the ones the world uses. The switch takes a minute; doing it without downtime depends on what you prepare beforehand and what you check afterwards.
Nameservers or just an A record?
- Change the nameservers when your website and email live with the same host and you want every record created and managed in one place.
- Edit only the A record when you want to keep DNS with a provider such as Cloudflare, or your email is with another provider and you don’t want to touch its records.
Before you start
- Access to your registrar account, the company you bought the domain from. The
Registrarline of a WHOIS lookup tells you who it is. - The new nameserver names from your host, for example
ns1.arabicode.comandns2.arabicode.com. - The domain added to the new hosting account, as the main or an addon domain, so it works as soon as propagation finishes.
- A copy of your current records if the domain has email or other services, such as Google Workspace MX records or TXT verification records.
- DNSSEC switched off at the old provider if it was on, with the DS record removed at the registrar.
Steps to change nameservers
1. Save a copy of your current DNS records
Check the records with the DNS lookup tool or from a terminal:
dig example.com NS +short
dig example.com MX +short
dig example.com TXT +short
If your email is hosted somewhere other than the new host, you’ll need to re-create its MX and TXT records in the new DNS editor after the switch, or incoming mail stops.
2. Open the domain’s settings at the registrar
Menu names vary, but the idea is the same everywhere:
| Registrar | Where to find it |
|---|---|
| GoDaddy | Domain Portfolio » select the domain » DNS » Nameservers » Change Nameservers » I’ll use my own nameservers |
| Namecheap | Domain List » Manage » Nameservers section » choose Custom DNS |
| Araby Panel | Domains page » the domain » Nameservers |
| Others | Look for Nameservers, DNS Servers or Custom DNS on the domain’s page |
3. Choose custom nameservers and enter the new ones
Pick the custom option instead of the registrar’s default nameservers, then enter:
ns1.arabicode.com
ns2.arabicode.com
A few rules:
- Enter the hostname only, with no
http://and no spaces. - Remove any old third or fourth nameserver. Mixing providers gives visitors conflicting answers.
- Save, and confirm any verification email sent to the domain owner’s address.
4. Check the change at the registry
A few minutes after saving, ask the extension’s servers directly; they aren’t affected by caching:
whois example.com | grep -i "name server"
dig NS example.com +trace
If the new nameservers appear at the end of the trace, the registrar side is done and what remains is DNS propagation through ISP caches.
5. Wait for propagation, then test the site and email
It can take up to 24-48 hours for every network to see the change. Then:
- Open the site in a private window and confirm it loads from the new host.
- Check that the SSL certificate has been issued and the padlock shows.
- Send a test email to and from your mailbox, and check the records with the MX lookup tool.
- Keep the old hosting for at least two more days so messages delivered there during propagation aren’t lost.
Troubleshooting
- WHOIS still shows the old nameservers hours later: the change may not have been saved, the domain may carry an update lock such as
clientUpdateProhibited, or it’s waiting for the owner to confirm by email. See nameservers not updating. - “Invalid nameserver” when saving: usually a typo. Some country-code registries also check that the new nameservers already know the domain, so add the domain to your hosting first and try again.
- The site works but email stopped: the external email provider’s records weren’t copied. Add its MX and TXT records in the new DNS editor.
- SERVFAIL after the switch: an old DNSSEC DS record is still at the registrar. Delete it and wait for caches to expire.
- Some devices still show the old site: a local or router cache. Run
ipconfig /flushdnson Windows, or test over mobile data. - You want nameservers on your own domain, like
ns1.example.com: those are custom (child) nameservers and need glue records at the registrar. A normal website doesn’t need them.
On ArabyHost
Enter ns1.arabicode.com and ns2.arabicode.com at your registrar. Once propagation finishes, the essential records (A, MX, SPF, DKIM) are created for you and a free AutoSSL certificate is issued without any request on your part. You then manage records from the DNS tab in the Araby Panel, or in cPanel, which opens with one click. Generic domains such as .com and .net registered through the Araby Panel point to our nameservers automatically, and you can change them from the Domains page if needed. Arab country extensions such as .sa, .eg and .ae are changed at the accredited registrar where you registered them. If you’d rather keep DNS elsewhere, use the A-record method in the guide to connecting a domain to hosting.
FAQ
Will my site or email go down while nameservers change?
Not if you add the domain to the new host and set up its records before switching, and keep the old hosting running until propagation finishes. During that window some visitors reach the old server and some the new one.
What's the difference between changing nameservers and editing an A record?
Changing nameservers moves management of every DNS record to a new provider. Editing the A record only changes where the website points and leaves the other records, such as email, where they are.
Why can't I find the nameserver setting at my registrar?
Some registrars call it Custom DNS or put Nameservers inside the DNS settings. If the domain is registered with Cloudflare Registrar you can't change it at all, because that service requires Cloudflare's nameservers; you'd need to transfer the domain elsewhere.