Guides › DNS 生效慢 / 域名还指向旧服务器?排查与解决

DNS 生效慢 / 域名还指向旧服务器?排查与解决

Updated: Oct 2026建站实战

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

Step 3: flush caches

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

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) 本地解析(看有没有本地缓存)
nslookup fusi.si

2) 公共解析(看全球是否已生效)
nslookup fusi.si 8.8.8.8

3) 直连新 IP(看站点内容是否正确)
curl --resolve fusi.si:443:新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

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).

dns-layers.svg
Diagram · dns-layers.svg

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.

Advertisement
Ad slot

Alat terkait