DNS TTL Impact Calculator

Calculate the impact of DNS TTL values on propagation time, resolver cache hit rates, and DNS query volume.

DNS TTL Impact Calculator

sec
$
sec
Max Propagation
5m
Worst-case time for all resolvers to see a change (5.0 min)
Auth Queries/sec
6.67
576,288 queries/day from 2000 resolvers
Cache Hit Rate
96.8%
Each resolver caches for 5m, reducing origin load
Monthly Auth Queries
17,288,640
Estimated authoritative DNS queries per month
Monthly DNS Cost
$6.92
17,288,640 queries at $0.4/1M
Cache Savings Ratio
30.0×
Ratio of cached-to-auth queries per resolver window
Propagation Speed
5m propagation
Fast — good balance of speed and cost
Failover Scenario (TTL → 1m)
Propagation
1m
Auth QPS
33.33
Monthly Cost
$34.56
TTLPropagationAuth QPSDaily QueriesMonthly Cost
30s30s66.675,760,288$69.12
1m1.0 min33.332,879,712$34.56
2m2.0 min16.671,440,288$17.28
5m5.0 min6.67576,288$6.92
10m10.0 min3.33287,712$3.45
15m15.0 min2.22191,808$2.30
30m30.0 min1.1195,904$1.15
1h60.0 min0.5648,384$0.58
2h120.0 min0.2824,192$0.29
4h240.0 min0.1412,096$0.15
12h720.0 min0.054,320$0.05
1d1,440.0 min0.021,728$0.02
TTL Best Practices by Record Type
RecordRecommended TTLNotes
A / AAAA300–3600sLower for failover-ready services, higher for stable IPs
CNAME300–3600sMatch the target record's TTL when possible
MX3600–14400sMail servers change rarely; higher TTL is fine
TXT (SPF/DKIM)3600–86400sSeldom changes; lower before planned updates
NS86400s+Delegation changes are rare; keep high
SRV300–900sService discovery benefits from lower TTLs
Planning notes, formulas, and examples

About the DNS TTL Impact Calculator

DNS TTL (Time to Live) controls how long resolvers cache a DNS response before querying the authoritative server again. Higher TTLs reduce DNS query volume and improve resolution speed from cache. Lower TTLs enable faster propagation of DNS changes but increase query load.

This calculator helps you understand the trade-offs of TTL values for your domains. It estimates cache hit rates, propagation times, and the query volume impact of different TTL settings. This is especially important when planning DNS migrations, failover configurations, or CDN integration.

Before a planned DNS change (migration, failover test), lower the TTL in advance by the current TTL duration. For example, if TTL is 3600 seconds (1 hour), lower it to 300 seconds at least 1 hour before the change. This ensures all cached entries expire before you make the change.

When This Page Helps

DNS TTL values directly affect how quickly your domain changes take effect and how many queries hit your DNS servers. This calculator helps choose the right TTL for different scenarios.

How to Use the Inputs

  1. Enter the current DNS TTL value in seconds.
  2. Enter the average requests per second to your domain.
  3. Enter the number of unique recursive resolvers querying your domain.
  4. Review the cache performance and propagation time analysis.
Formula used
Propagation Time ≈ TTL (worst case all resolvers have cached entries) Queries to Authority = resolvers / TTL (per second, per resolver refresh) Cache Hit Rate ≈ 1 − (resolvers / (resolvers + requests_per_sec × TTL))

Example Calculation

Result: Propagation: ~5 min, ~1.67 auth queries/sec

At TTL 300 seconds, resolvers cache for 5 minutes. Each of 500 resolvers re-queries every 300 seconds: 500/300 = 1.67 queries/sec to the authoritative server. With 100 rps total, cache hit rate is very high since most requests are answered from resolver cache.

Tips & Best Practices

  • Use 300–600 seconds TTL for records that may need quick changes.
  • Use 3600+ seconds TTL for stable records (mail servers, static infrastructure).
  • Lower TTL at least 2x current TTL before a planned DNS change.
  • After completing a migration, raise TTL back to reduce query load.
  • CDN providers often manage their own TTL — check before overriding.
  • Monitor authoritative DNS query volume to validate TTL effectiveness.

TTL Strategy for Different Use Cases

Static infrastructure (mail servers, name servers): TTL 3600–86400 seconds. These rarely change and benefit from aggressive caching. Web applications with potential failover: TTL 60–300 seconds. These need to change quickly during incidents.

Pre-Migration TTL Lowering

The pre-migration TTL dance: (1) Lower TTL to 60–300 seconds, (2) Wait for the old TTL to expire, (3) Make the DNS change, (4) Verify propagation, (5) Raise TTL back to normal. Skipping step 2 means some resolvers still have the old record cached at the high TTL.

DNS Query Cost Considerations

Cloud DNS services charge per million queries. At 1,000 resolvers with 60-second TTL, you generate 1,000/60 = 16.7 authoritative queries per second, or ~1.44 million per day. At 3600-second TTL, that drops to 24,000 per day — a 60x reduction.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • For most records: 300–600 seconds (5–10 minutes) balances change speed with cache efficiency. For stable records: 3600 seconds (1 hour) or more. For records requiring instant failover: 30–60 seconds (high query cost).