Insights

Customer Asks When DNS Will Update? Read the Remaining TTL in dig Output

November 9, 2026
0:00
After a migration, the first follow-up question is almost always the same: when will my site show the new server? The usual reply, up to 48 hours, is safe on paper and useless in practice. The customer can't plan around it, and for a simple A record change it's usually far too long. You can give a tighter, honest answer by reading one number in dig output: the TTL a resolver reports while it still holds the old record. TTL (time to live) is the number of seconds a resolver may keep a DNS answer in its cache before it has to ask again. Once you know how to read it from the resolver's side, the vague promise turns into a concrete time.
Two kinds of DNS servers are involved. Authoritative nameservers hold the actual zone, the records you edit. Recursive resolvers, such as your ISP's resolver, 8.8.8.8, or 1.1.1.1, fetch answers from authoritative servers and cache them. Propagation is just the time it takes for those caches to expire. That means waiting only helps if the authoritative servers already return the new IP. A common pattern behind slow propagation is a record edited in a panel whose DNS isn't in use, because the domain's nameservers point somewhere else. If you're not sure which side should hold the records, see Ganti Nameserver atau Cukup Ubah A Record Saat Pindah Hosting?.
BASH
# Which nameservers are authoritative for the domain
dig NS example.com +short

# Ask one of them directly, without recursion
dig @ns1.example-dns.net example.com A +norecurse +noall +answer

# Ask public resolvers what they currently have cached
dig @8.8.8.8 example.com A +noall +answer
dig @1.1.1.1 example.com A +noall +answer
Replace ns1.example-dns.net with a name from the first command. If the authoritative server still returns the old IP, stop here. The problem is the zone, not propagation, and no estimate you give will come true.
The second column of each answer line is the TTL. It means different things depending on who answered. Illustrative output format:
TEXT
; Authoritative server: full configured TTL, new address
example.com.    3600    IN    A    198.51.100.20

; Public resolver: cached copy, TTL counting down, old address
example.com.    2873    IN    A    203.0.113.10
An authoritative server always returns the TTL configured in the zone. A resolver returns the time left on its cached copy. Run the resolver query again a minute later and the number drops by roughly 60. When it reaches zero, the resolver throws the record away, asks the authoritative server again, and gets the new IP. In the example above, that resolver will keep handing out the old address for about 48 more minutes, and no longer. A few things can make this look confusing. If you run dig without @server, you're asking whatever resolver your own machine uses. On many Linux desktops that's a local stub cache such as systemd-resolved on 127.0.0.53, which says nothing about what the customer sees. Always name the resolver explicitly. If consecutive queries to the same public resolver show TTLs that jump up and down, or flip between old and new IPs, that's normal. Large public resolvers run many separate caches behind one anycast address, and each cache fetched the record at a different moment. Use the highest remaining TTL you see as your planning number. If the remaining TTL is higher than what the authoritative server returns now, the resolver cached the record while the TTL was still set higher. Lowering the TTL doesn't shorten copies that are already cached. That's a planning issue for next time, not something you can fix now.
You now have two useful numbers. The first is per resolver. The remaining TTL on 8.8.8.8 tells you when visitors using that resolver will see the new site. The second is the honest worst case for every standard resolver. It's the TTL that was in effect before the change, counted from the moment the change went live on the authoritative server. Any resolver holding the old record cached it before the change, so its copy expires at most one old TTL later. As an illustrative example, with a TTL of 3600 and a change made at the top of the hour, every resolver that follows the rules should return the new IP by the next hour. That gives you a reply like: public resolvers will pick up the new server within about 50 minutes, and any standard resolver within an hour of the change. If you still see the old site after that, it's likely your device's own cache, and we can check that next. That's specific, it's true, and it gives the customer a time to check back. The customer's ISP resolver is the one you usually can't see. Many ISP resolvers only answer queries from their own subscribers. Ask the customer to check from their side instead. On macOS or Linux, dig example.com A +noall +answer works. On Windows, nslookup -debug example.com or the PowerShell cmdlet Resolve-DnsName example.com both show a TTL. Read their output the same way.
What you seeWhat it means
Authoritative server returns the old IPThe zone is wrong or edited in the wrong place. Waiting won't help.
Resolver returns the new IPThat resolver is done. Look at local caches, AAAA records, or a proxy in front of the site.
Resolver returns the old IP with TTL NThat resolver switches within N seconds.
TTL hits zero, then resets to the full value with the old IPThe resolver refetched and still got old data. Check which nameservers it's using.
The remaining TTL describes the resolver cache. Other layers can still show the old site after the resolver has switched. Browsers and operating systems keep their own short-lived DNS caches. A browser can also keep an existing connection open to the old server for a while. A new private window, a different device, or a phone on mobile data is a quick way to rule this out. Resolver operators can override your TTL. Unbound has cache-min-ttl and cache-max-ttl, and BIND has similar options. A resolver with a raised minimum can hold a record longer than you published. This is uncommon on the big public resolvers, but corporate and some ISP resolvers are configured differently. Some resolvers can serve expired data when they can't reach the authoritative servers, a behavior called serve-stale. This matters if the old DNS hosting is shut down before the migration is finished. A brand-new hostname follows a different rule. If someone queried it before it existed, the resolver cached the not-found answer (NXDOMAIN) for the zone's negative TTL. That's the lower of the SOA record's own TTL and its minimum field, which you can see with dig example.com SOA. Two more cases skip the TTL entirely. If an old AAAA record still points at the old server, IPv6 visitors land there no matter what the A record says. If the site sits behind a proxy or CDN, DNS points at the proxy, and the origin change has to happen in the proxy settings.
If the migration changed the nameservers rather than just a record, the A record TTL isn't the only clock running. Resolvers learn which nameservers to ask from the parent TLD servers. Those servers publish the delegation with their own NS TTL, set by the registry rather than by you, and it's often much longer than a typical record TTL. This is where much of the 48-hour habit comes from.
BASH
# Find the servers for the TLD, then ask one for the delegation without recursion
dig NS com +short
dig @a.gtld-servers.net example.com NS +norecurse
The NS records appear in the AUTHORITY section of the response, and their TTL is how long a resolver may keep using the old nameservers. During that window, some resolvers will still ask the old provider. So keep the old zone running and updated with the new records until the window has passed. Some resolvers also honor the NS TTL published inside the zone itself. Check both and plan around the longer one, plus the record TTL on top. Next time a customer asks when DNS will update, run three queries before you answer. Ask the authoritative server to confirm the change is live, ask a public resolver for the remaining TTL, and check whether the nameservers changed. Most of the time that turns up to 48 hours into within the hour, and you can show the customer exactly why.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.