
When your website goes down, the problem might not be your server at all. Sometimes the issue is DNS — and DNS TTL values can mean failures persist long after the underlying problem is fixed. Understanding DNS TTL is essential for anyone serious about website availability.
TTL (Time to Live) is a value in a DNS record that tells resolvers — your ISP's DNS servers, corporate DNS caches, browser caches — how long to cache that record before querying the authoritative DNS server again.
TTL is measured in seconds:
When someone visits yourdomain.com, their browser (or their network's DNS resolver) looks up the IP address. If they've visited recently and the TTL hasn't expired, they use the cached result without querying your DNS provider.
If your server fails and you update DNS to point to a failover server, users with cached DNS records will still be sent to the broken server until their TTL expires.
With a TTL of 3600 (1 hour), a user who looked up your domain 30 minutes ago will continue being sent to the old IP for another 30 minutes after you update DNS — even though you've already pointed DNS to a working server.
Lower TTL = faster failover
This is why high-availability architectures often use TTLs of 60-300 seconds during incidents or planned migrations.
When you change a DNS record (updating an IP address, changing nameservers, adding a record), the change takes time to propagate. Users see the new record only after their cached version expires.
DNS "propagation time" is directly controlled by TTL — a common misconception is that DNS propagation takes 24-48 hours automatically. In reality, propagation can be as fast as your TTL value allows.
Your uptime monitoring tool performs DNS lookups as part of each check. If monitoring servers have cached your DNS, they may not immediately detect a DNS failure.
Most monitoring tools re-resolve DNS on every check (not using OS-level caches), so they detect DNS failures accurately. But when you update DNS after fixing an issue, individual users may continue experiencing failures until their local TTL expires.
| Record Type | Typical TTL | Notes |
|---|---|---|
| A (IPv4 address) | 300–3600 | Balance between propagation and cacheability |
| AAAA (IPv6 address) | 300–3600 | Same as A records |
| CNAME (alias) | 300–3600 | Lower for SaaS/CDN-hosted services |
| MX (email) | 3600–86400 | Changes rarely; higher TTL is fine |
| TXT (verification, SPF) | 3600–86400 | Usually doesn't need fast updates |
| NS (nameservers) | 86400–172800 | Very high — nameserver changes are rare |
During stable operation, higher TTLs reduce DNS query load and improve performance:
If you're planning to change DNS records (migrating hosting, changing IP addresses), lower your TTL in advance:
If you forget to lower TTL before a migration, you may face a multi-hour delay before all users see the new IP — even though DNS is already updated.
If you're rerouting traffic during an incident via DNS, you want low TTL:
DNS failures are a genuine cause of website downtime. Common DNS issues:
Domain expiry monitoring with 60-day advance warnings ensures your domain never expires unexpectedly — preventing the catastrophic scenario of DNS failure from domain loss.
For DNS record changes and potential hijacking, monitoring your domain's DNS records for unexpected changes provides an additional security and availability layer. This is covered in what is WHOIS monitoring.
When your external uptime monitor checks your website:
If DNS is failing, the monitor will report a DNS error — a distinct failure type from a server error. Good monitoring tools surface this distinction, helping you diagnose whether the problem is DNS, the server, or the application.
Multi-location monitoring is especially valuable for DNS issues — DNS failures can be regional, affecting users in one area while others can still resolve your domain fine.
To check the current TTL on your DNS records:
# Check A record TTL
dig yourdomain.com
# Check TTL at a specific DNS server
dig @8.8.8.8 yourdomain.com
# Check CNAME TTL
dig www.yourdomain.com CNAME
The TTL value in the response shows how many seconds remain before the cached record expires.
Monitor DNS availability and website uptime in real time at Domain Monitor.
Generative AI creates new content — text, images, code, and more. This guide explains how it works, what tools are available, and where it's genuinely useful versus overhyped.
Read moreCursor AI is an AI-powered code editor built on VS Code. Learn what it does, how it works, and whether it's the right tool for your development workflow.
Read moreClaude Opus is Anthropic's most capable AI model, built for complex reasoning and demanding tasks. Learn what it does, how it compares, and when to use it.
Read moreLooking to monitor your website and domains? Join our platform and start today.