Hosting & DNSintermediate

Website Not Loading After a DNS Change

Diagnose a website that stopped loading after a DNS or nameserver change by checking delegation, records, TTL, the origin, and HTTPS in order.

Published
A physical DNS network diagram with two nameserver paths and an orange connection leading to a failed browser request.

If a website stopped loading after a DNS change, stop editing records long enough to identify which layer is wrong. First confirm the domain’s authoritative nameservers, then query the exact A, AAAA, or CNAME record visitors receive. If those answers match the host, test the hosting origin and HTTPS separately. Waiting only helps when a correct answer is still cached; it does not fix incorrect delegation or a wrong record.

When this guide applies

Use this checklist after changing nameservers, moving DNS providers, editing the apex or www record, enabling a proxy, or pointing a domain to a new host. It covers failures such as the domain not resolving, the wrong site appearing, a timeout, or an HTTPS warning immediately after the change.

Do not use the browser message alone to diagnose DNS. A DNS failure, unreachable origin, missing domain assignment, redirect loop, and pending certificate can look similar to a visitor.

Before you change anything else

Export the zone if the provider supports it, or take screenshots showing each record’s name, type, value, proxy state, and TTL. Record the old nameservers and the values supplied by the new DNS provider and web host.

If changing nameservers moved the whole zone, confirm that email and verification records were copied as well. Do not remove or rewrite MX, SPF, DKIM, DMARC, or service-verification records just to repair the website.

1. Identify what changed

Classify the last action before troubleshooting:

  • Nameserver change: the registrar now delegates the entire domain to a different DNS provider.
  • Website record change: an A or AAAA record points to an IP address, or a CNAME points one hostname to another.
  • Proxy change: the record stayed the same, but traffic now passes through a CDN or reverse proxy.
  • DNSSEC change: the registrar’s DS record or the DNS provider’s signing state changed.

This distinction determines where to look. Editing an A record in the old DNS dashboard cannot help if the registrar now delegates the domain somewhere else.

2. Confirm the authoritative nameservers

Check the domain at the registrar, not only inside the DNS provider’s dashboard. The assigned nameservers must match the provider’s values exactly, and no old or additional nameserver should remain unless the provider explicitly requires it.

From a terminal, replace example.com with the domain:

nslookup -type=ns example.com

Compare the result with the assigned nameservers. Cloudflare notes that registrar updates can take up to 24 hours, but a persistent mix of old and new nameservers is a configuration problem, not a reason to wait indefinitely.

If DNSSEC was active at the old provider, an obsolete DS record at the registrar can cause validation failures after a nameserver migration. Do not delete DNSSEC data blindly. Follow the old provider, new provider, and registrar’s migration sequence or ask their support teams to coordinate it.

3. Query the record that serves the website

Check both the apex domain and www, because they are separate names. Query a public resolver rather than relying only on the current device cache:

nslookup -type=a example.com 1.1.1.1
nslookup -type=aaaa example.com 1.1.1.1
nslookup -type=cname www.example.com 1.1.1.1

Compare the answers with the destination specified by the web host or deployment platform. Check the record type as well as its value:

  • A sends a hostname to an IPv4 address.
  • AAAA sends it to an IPv6 address.
  • CNAME aliases one hostname to another and is commonly used for www.

A stale or incorrect AAAA record can affect visitors whose networks prefer IPv6 even when the A record is correct. Do not copy an IP address from a third-party lookup site; use the value supplied by the current host.

4. Interpret TTL and caching correctly

TTL tells recursive resolvers how long they may cache a DNS answer. After changing a record, some users can receive the previous answer until its previous TTL expires. Lowering the TTL after the change cannot recall an answer already cached elsewhere.

Cloudflare documents an automatic TTL of 300 seconds for proxied records, while local or ISP caches can take longer to refresh. Other DNS providers and unproxied records can use different values. Avoid repeatedly switching a record between destinations, because every new change makes the evidence harder to interpret.

If authoritative and public-resolver answers are already wrong, waiting is not the fix. Correct the authoritative record first, then allow its prior TTL to expire.

5. Separate DNS from the hosting origin

When public DNS returns the expected destination but the site still fails, move to the hosting layer. In the host or deployment dashboard, verify that:

  1. the exact apex and www hostnames are assigned to the correct project or site;
  2. the intended deployment is active;
  3. the origin accepts requests for those hostnames;
  4. no maintenance, firewall, or redirect rule blocks the request.

Use the host’s documented preview or origin-testing method. Typing an origin IP directly into a browser is not a reliable test because virtual hosting and TLS depend on the requested hostname.

If a CDN proxy is involved, temporarily switching to DNS-only can be a useful controlled test only when the origin is ready for public traffic and the provider’s instructions allow it. Restore the previous proxy state if the result does not isolate the failure.

6. Check HTTPS separately

Successful DNS resolution does not guarantee that HTTPS is ready. Confirm that the edge or host certificate status is active and covers every public hostname, including www if it is used.

Do not bypass a certificate warning or force a permanent HTTP-to-HTTPS redirect before the certificate is active. If the certificate remains pending, check provider-specific validation requirements, CAA restrictions, DNSSEC health, and whether an unexpected AAAA record sends validation to another server.

Once the certificate is active, test the final HTTPS URL and its redirect chain. A redirect between www and the apex should end at one canonical hostname rather than loop between them.

7. Compare networks, then clear local state

Test the domain from the normal connection and one independent network, such as mobile data. Compare their DNS answers before changing the zone again. If public resolvers show the correct value but only one device fails, flush that device’s DNS cache or restart its network connection.

Changing the device’s resolver or clearing its cache is a local diagnostic step, not proof that the domain is fixed for everyone.

Verify the fix

Confirm all of the following before closing the incident:

  1. The registrar delegates only to the intended authoritative nameservers.
  2. Public resolvers return the expected records for the apex and www.
  3. Both hostnames reach the intended site from two independent networks.
  4. HTTPS presents a valid certificate for the final hostname.
  5. HTTP redirects once to the intended HTTPS canonical URL.
  6. If nameservers changed, mail and other copied DNS services still resolve.

Keep the pre-change record export until at least one full prior TTL has passed and the dependent services have been checked.

Rollback and escalation

If the new host or zone cannot serve the domain, restore the last known-good delegation or record values using the saved evidence. Avoid oscillating between configurations; make one rollback, then allow the relevant cached answer to expire.

Escalate with the domain, change time and time zone, old and new values, authoritative nameserver result, public A/AAAA/CNAME answers, certificate status, and the exact browser or command-line error. Never include registrar passwords, API tokens, or complete private zone exports in a public ticket.

Source and version notes

This guide was source-reviewed on October 15, 2026, against Cloudflare’s documentation for authoritative nameservers, full-zone troubleshooting, DNS records, TTL, and certificate status. It was not tested across every registrar, resolver, host, or DNS provider, and there is no universal propagation time that applies to every change.

Tags:
  • #DNS change
  • #nameservers
  • #propagation
  • #SSL

References

  1. developers.cloudflare.com
  2. developers.cloudflare.com
  3. developers.cloudflare.com
  4. developers.cloudflare.com
  5. developers.cloudflare.com