TTL Calculator

Convert DNS TTL (Time To Live) values between seconds and human-readable format. Understand how TTL affects DNS caching, propagation speed, and record management. All calculations run locally in your browser.

TTL Calculator
Figure 1 — TTL Calculator

What Is DNS TTL?

TTL (Time To Live) is a value in DNS records that tells resolvers how long to cache a record before requesting a fresh copy from the authoritative server. Measured in seconds, TTL directly controls the tradeoff between DNS query performance and how quickly changes propagate across the internet.

When you query a domain using our DNS Lookup tool, every record returned includes a TTL value. Understanding TTL is essential for anyone managing DNS records, whether you're setting up email authentication with MX records or configuring dynamic DNS.

Common TTL Values Reference

Different types of DNS records typically use different TTL values based on how frequently they change:

TTL (Seconds)Human-ReadableTypical Use
601 minuteActive failover, load balancers, CDN edge records
3005 minutesDynamic DNS (DDNS), frequently updated records
90015 minutesPre-migration (lowered before a DNS change)
180030 minutesActive management, regular updates
36001 hourStandard default for most providers
144004 hoursStable records with occasional changes
4320012 hoursRelatively stable infrastructure records
864001 dayStable records (NS, SOA)
6048007 daysVery stable records that almost never change

Pro Tip: Before making any DNS change, lower your TTL to 300 seconds (5 minutes) at least 24-48 hours in advance. This ensures that when you make the change, all caching resolvers will pick up the new record within 5 minutes instead of waiting for the old high TTL to expire. After the change is stable, raise the TTL back. This technique is especially important when migrating MX records or changing your website's IP address.

How TTL Affects DNS Propagation

DNS propagation is the time it takes for DNS changes to reach all resolvers worldwide. TTL is the primary factor controlling propagation speed:

ScenarioOld TTLPropagation TimeStrategy
Emergency DNS change86400 (1 day)Up to 24 hoursLower TTL in advance next time
Planned migration300 (5 min, lowered)5-10 minutesPre-lowered TTL, smooth transition
CDN/failover switch60 (1 min)1-2 minutesAlways-low TTL for dynamic routing
New domain setup3600 (1 hour)Up to 1 hourStandard default, acceptable for new records

Note that propagation time is bounded by the old TTL value, not the new one. If your current record has a 24-hour TTL, resolvers that cached it just before the change will hold the old value for up to 24 hours, regardless of the new TTL you set.

Note: Some resolvers and ISPs may ignore TTL values or impose minimum/maximum caching times. For example, some ISPs cache records for at least 30 minutes regardless of the TTL. If your DNS server isn't responding or you suspect caching issues, try flushing your local DNS cache and switching to a public resolver like Cloudflare (1.1.1.1) or Google (8.8.8.8) through your router settings.

TTL Best Practices by Record Type

Different DNS record types benefit from different TTL strategies based on how frequently they typically change:

  • A/AAAA Records — Use 300-3600 seconds. Lower for dynamic infrastructure, higher for static websites. Check current values with our Website IP Lookup.
  • MX Records — Use 3600-14400 seconds. Email server changes are planned events, and higher TTL reduces unnecessary lookups. Verify with our MX Record Checker.
  • TXT Records (SPF/DKIM/DMARC) — Use 3600-86400 seconds. These change infrequently. Check with our SPF, DKIM, and DMARC checkers.
  • NS Records — Use 86400-172800 seconds. Name server changes are rare and should be carefully planned.
  • CNAME Records — Match the TTL of the target record to avoid inconsistencies.
  • DDNS Records — Use 60-300 seconds. Dynamic DNS records change frequently by design. See our DDNS setup guide.

TTL and Network Performance

TTL creates a fundamental tradeoff between freshness and performance:

  • Low TTL (60-300s) — Faster propagation, higher load on authoritative servers, more DNS queries per device. Appropriate for dynamic content delivery and failover systems.
  • High TTL (3600-86400s) — Slower propagation, reduced server load, fewer DNS queries. Better for stable infrastructure with planned change windows.

For home networks, the DNS resolver you use also matters. Run our DNS Speed Benchmark to find the fastest resolver for your location, and learn about the differences between ISP DNS and custom DNS.

DNS Migration Checklist

Follow this checklist when planning any DNS change to minimize downtime:

# 48 hours before migration:
1. Check current TTL values (dig domain.com A)
2. Lower TTL to 300 seconds on records you'll change
3. Wait for old TTL to expire (up to current TTL)

# At migration time:
4. Make the DNS change (new IP, new mail server, etc.)
5. Verify new records propagate (use DNS lookup tools)
6. Monitor for 24 hours

# After migration is stable:
7. Raise TTL back to normal (3600-86400)
8. Remove old infrastructure after 2x old TTL
Key Takeaways
  • TTL controls how long DNS resolvers cache records — measured in seconds.
  • Lower TTL before DNS changes for faster propagation; raise it after for better performance.
  • Standard TTL of 3600 seconds (1 hour) works well for most records.
  • Use 60-300 seconds for dynamic DNS, CDN, and failover configurations.
  • Propagation time is bounded by the old TTL, not the new one.
  • Some ISPs may override TTL values — use DNS lookup tools to verify actual cache behavior.

Video: DNS TTL Explained

Related Tools and Guides

Frequently Asked Questions

What is a good TTL value for DNS records?

For most DNS records, 3600 seconds (1 hour) is a good default. Use lower values (300 seconds) for records that change frequently or during migrations. Use higher values (86400 seconds) for stable records like NS or TXT authentication records.

Does TTL 0 mean no caching?

Technically, TTL 0 instructs resolvers not to cache the record at all. However, some resolvers may still cache briefly (30 seconds to a few minutes) for performance reasons. A TTL of 0 is rarely practical because it creates significant load on authoritative servers.

How long before DNS changes take effect?

Changes take effect after the old TTL expires from all caches. If the current TTL is 3600 (1 hour), resolvers that cached the old record just before the change will update within 1 hour. Global propagation may take longer if some resolvers override TTL values.

Can I set different TTLs for different records?

Yes. Each DNS record can have its own TTL value. It's common to use a lower TTL for A records (which may change during infrastructure changes) and higher TTL for MX or TXT records (which change infrequently).

What happens if I set TTL too low?

Very low TTL values (under 60 seconds) increase the number of DNS queries hitting your authoritative servers, which can increase load and costs. They also make your site more dependent on DNS server availability — if your DNS goes down, cached records expire quickly and your site becomes unreachable faster.

What happens if I set TTL too high?

High TTL values (over 86400 seconds) mean DNS changes take a long time to propagate. If you need to make an emergency change (like moving to a new server after an outage), users with cached records won't see the change for hours or days. Always lower TTL before planned changes.

Does TTL affect SEO?

TTL does not directly affect SEO. However, during a migration with high TTL, some users (and search engine crawlers) may be directed to the old server for an extended period. This can cause temporary 404 errors or stale content, which could indirectly impact search rankings if the migration takes too long.

About Tommy N.

Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.

Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.

Once done, hit any button as below