How to check DNS after connecting a domain
You’ve connected your domain, and example.com loads. But www.example.com still shows the old site or fails to open. Start by looking up both names separately. Your hosting provider may expect a different DNS record for each one.
Open your hosting provider’s domain setup screen and note the name, type, and value it expects. Then enter example.com and www.example.com separately in DNS Lookup.
Which DNS records should you check?
| Record | What it points to | What to compare |
|---|---|---|
| A | An IPv4 address | Does the address match the IPv4 address your host gave you? |
| AAAA | An IPv6 address | If an IPv6 record exists, does it point to the intended host? A correct A record can coexist with an older AAAA record that still sends IPv6 visitors elsewhere. |
| CNAME | Another hostname | Does the target match the hostname your provider gave you? Compare the target even if the lookup also shows IP addresses reached through it. |
Some providers also ask you to add a TXT record to verify domain ownership. Check the exact name and value they provide. Once verification succeeds, check the records that direct visitors to the site.
Worked example of www pointing to the old host
Suppose your new hosting provider gives you these instructions. The values below are fictional. Use the values from your own provider when checking your domain.
| Hostname | What the new host expects | What DNS Lookup returns |
|---|---|---|
example.com | A → 192.0.2.10 | A → 192.0.2.10 |
www.example.com | CNAME → sites.new-host.example | CNAME → sites.old-host.example |
The root domain matches. The www lookup still returns the old target. Open the DNS dashboard that publishes your domain’s records and check the www entry there.
- The dashboard still shows the old target. Edit the
wwwCNAME to use the target your new host provided. - The expected
wwwrecord is missing. Check whetherwwwalready has another record, then follow your host’s instructions to add or replace the entry. - The dashboard already shows the new target. Confirm you’re editing the active DNS provider. If the change was recent, a resolver may still have the previous answer cached.
Many dashboards use @ for the root domain and www for the subdomain. When you run the lookup, use the full name, such as www.example.com.
When should you wait and check again?
TTL stands for time to live. It tells a resolver how long it can keep a DNS answer in its cache. If a resolver saved the old answer at 10 a.m. with a one-hour TTL and you changed the record at 10:15 a.m., that resolver can still return the old answer until around 11 a.m. A resolver can also cache an earlier answer saying a name or record was missing.
If the old value persists, look up the root domain’s NS records and compare the nameservers with the ones listed for your domain at the registrar. Make the edit at the DNS provider serving those nameservers. Then rerun the lookup for the exact hostname you changed.
If DNS matches but the site still fails
Check that both names are added to the correct project in your hosting dashboard and that HTTPS is ready for each. Then open both addresses in your browser. If www is supposed to send visitors to the root domain, check where that redirect actually ends with the Redirect Checker.