DNS maps a domain name to a server’s IP address. When the domain is registered in one place and the site is hosted somewhere else, DNS has to be told about the new address. Until it is, visitors see the registrar’s parking page, the old site, or an error such as DNS_PROBE_FINISHED_NXDOMAIN, and no SSL certificate can be issued, because validation requires the domain to point to the server.
Two ways to connect a domain
| Method | What you change | When it fits |
|---|---|---|
| Nameservers | The nameservers at the registrar | Simplest; records are created for you |
| A record | The A record at your current DNS provider | When you want to keep DNS at Cloudflare or another provider |
Common causes
- The nameservers weren’t changed at the registrar, or were mistyped.
- The A record points to an old server, because DNS is managed somewhere other than where you edited.
- You edited the wrong place: for example, the hosting DNS zone while the nameservers still point to the registrar.
- The
wwwrecord is missing or points elsewhere. - Propagation isn’t finished after the change.
- The domain isn’t added to the hosting account, so visitors get a default page even though DNS is correct.
How to check and fix it
1. Find the server’s IP address
Open cPanel; the address is in the General Information panel as Shared IP Address or Dedicated IP Address.
2. See where the domain points
Use the DNS lookup tool or the command line:
dig NS example.com +short
dig example.com A +short
dig www.example.com A +short
The nameservers should be the ones you expect, and the A records for the domain and www should return the server’s IP.
3. Correct the connection
- Via nameservers: at your registrar, remove the old nameservers and enter your host’s. Steps are in the change nameservers guide.
- Via A record: at your DNS provider, point the
@record to the server’s IP, addwwwas a CNAME to the domain, and add MX records if your email is on the hosting.
4. Make sure the domain is on the account
In cPanel, open Domains » Domains and confirm the domain is listed with the right document root. If it isn’t, add it as an addon domain and upload the files to its folder.
5. Wait for propagation, then re-check
Some visitors see the new site before others because of caching. Check again after a few hours, and flush your own DNS cache if you still see the old site.
Prevention
- Before a move, lower the TTL on the old records a day ahead so the switch spreads faster.
- Always know where the domain’s DNS is managed (registrar, Cloudflare or host) and edit records only there.
- Don’t cancel the old hosting until the new site shows up for everyone.
On ArabyHost
The simplest route is changing the nameservers at your registrar to ns1.arabicode.com and ns2.arabicode.com. The website and email records (A, MX, SPF, DKIM) are created automatically, and a free SSL certificate is issued through AutoSSL once the domain points to the server. Propagation can take up to 24-48 hours. If you’re moving an existing site, use our free migration help, or follow the connect a domain to hosting guide.
FAQ
Which is better: changing nameservers or an A record?
Changing nameservers is simpler because the host creates every record (website and email) for you. Use an A record if you want to keep DNS at another provider such as Cloudflare; you'll then need to add the email records yourself.
I changed the nameservers but still see the old site. Why?
Usually propagation hasn't finished, or your device has the old address cached. It can take up to 24-48 hours; meanwhile try another network or flush your DNS cache.
The domain points to the server but shows a default page. What's wrong?
DNS is fine, but the domain hasn't been added to your hosting account, or the site files aren't in its folder. Add the domain in cPanel under Domains and upload the files to the right directory.