In this guide: How to point a domain to your hosting: nameservers vs A records, step-by-step setup, checking DNS propagation, and fixing common DNS errors.
You bought a domain at one company and hosting at another. Now you need to connect them so visitors typing your domain land on your website. This process — “pointing” your domain — sounds technical, but it takes about five minutes once you understand the two methods.
The Domain Name System (DNS) is the internet’s phone book: it translates your domain into the IP address of your server. You can connect a domain to hosting in two ways:
Method 1 — Change nameservers.
Nameservers decide who manages your domain’s DNS records. When you switch to your host’s nameservers (for example, ns1.yourhost.com and ns2.yourhost.com), your host takes over DNS management and automatically creates the right records.
Method 2 — Update A records (and CNAME).
You keep DNS at your registrar (or a service like Cloudflare) and just point specific records at your host’s IP address.
Before switching, note any existing DNS records (especially MX records for email). If your email is hosted elsewhere — for example, with Google Workspace or Microsoft 365 — you’ll need to recreate those records at your host.
@ (the root domain) and set its value to your server IP.www by either:www with the same IP, orwww pointing to your root domain.Tip: lowering the record’s TTL (time to live) a day before a planned change makes future updates spread faster.
DNS changes aren’t instant. Servers worldwide cache old records until their TTL expires. Nameserver changes can take up to 24–48 hours, while A record changes are often visible within minutes to a few hours.
To check progress:
nslookup yourdomain.com or dig yourdomain.com from a terminal.Once your domain loads the hosting’s default page or your site, install SSL so it works on HTTPS — see What Is SSL?.
“This site can’t be reached” / DNS_PROBE_FINISHED_NXDOMAIN
The domain isn’t resolving yet. Wait for propagation, check nameservers are spelled correctly, and confirm the domain isn’t expired.
Site loads the old website
Your device or ISP is using cached DNS. Clear cache, try another network, or wait for the TTL to expire.
Email stopped working
You changed nameservers and lost your MX records. Re-add the MX, SPF, and DKIM records for your email provider. Our SPF, DKIM, and DMARC guide explains each.
www works but root domain doesn’t (or vice versa)
One record is missing. Make sure both @ and www point to your server.
SSL error after pointing
SSL certificates are issued after DNS points correctly. Wait until propagation finishes, then reissue or activate SSL in your hosting panel.
Registrar lock or pending transfer
Some DNS changes can’t be made while a domain is locked or mid-transfer. Check the domain status.
Which method should I use?
Beginners: change nameservers. If you use Cloudflare or keep email and other services elsewhere, use A records.
Does pointing a domain transfer it to my host?
No. Pointing only changes where the domain directs visitors. The domain stays registered where it is. To move registration, see how to transfer a domain.
Further reading: WordPress Advanced Administration Handbook
We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.