DNS Not Switching? How to Diagnose and Fix
The most common DNS headache: changed nameservers, same old site. The key is separating a config error from cache lag — the fixes differ.
Step 1: config or cache?
Bypass local resolution, get the IP from public DNS, then force that IP. If you see the new site, your config is fine — it's cache.
Example: curl --resolve yourdomain:443:CFIP https://yourdomain/
Step 2: compare resolvers
- See what your OS or router returns
- See what Google Public DNS returns
- See what Cloudflare public DNS returns
Step 3: flush caches
- ipconfig /flushdns
- sudo dscacheutil -flushcache (mac) / restart the local resolver
- Reboot, or clear the DNS cache from the admin page
Step 4: still stale?
Switch your local DNS to public resolvers (8.8.8.8 / 1.1.1.1) to bypass the router cache. Most reliable fix.
Checklist
- Have the NS records changed? Is the CNAME right? Is the zone active?
- Has public DNS returned the new IP yet?
- Has the local machine or router cleared its cache?
- Force the new IP in the hosts file — do you see the new content?
Why HTTP 200 can still be the old site
A key trap: parked pages also return HTTP 200, so “it opens” is not the same as “it is the new site”. Check actual page content, not just the status code.
Three commands, three layers
# 1) Local resolution (to see whether you have a local cache)
nslookup fusi.si
2) Public resolution (see whether it has propagated)
nslookup fusi.si 8.8.8.8
3) Connect straight to the new IP (check the content is right)
curl --resolve fusi.si:443:NEW_IP https://fusi.si/
Run these in order to tell "local cache" from "server config". If public DNS returns the new IP and direct-connect shows the new site, it is purely local cache.
Flushing per platform
- Windows:
ipconfig /flushdns - macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - Linux:
sudo systemd-resolve --flush-caches - Router:Reboot, or clear the DNS cache from the admin page (the most common hidden cache source)
- Browser:Clear the DNS cache entry, or verify in a private window
The permanent fix
If it stays stale after flushing, the router is caching. Switch your adapter DNS to 8.8.8.8 / 1.1.1.1 (requires admin).
Real case: the false not-live alarm
Three days after the NS switch, the site still showed a Hostinger parked page and looked like a failed deploy. Public DNS already returned the new Cloudflare IP and direct-connect showed the new site — it was purely local/router cache. Switching adapter DNS to 8.8.8.8 / 1.1.1.1 fixed it instantly.
- Biggest lesson: HTTP 200 does not mean the new site is live — parking pages return 200 too, so check the real title and content.
- The verifying move: use
curl --resolveConnect straight to the new IP — one command tells configuration apart from caching.