DNSFly
DNS 5 min read

What is DNS TTL?

TTL is one of the most important DNS settings you've probably never thought about. Understanding it can save you hours of waiting during DNS changes.

What TTL Means

TTL stands for Time to Live. In DNS, TTL is a value (measured in seconds) that tells DNS servers and resolvers how long they should cache a DNS record before checking for an update.

Simple Definition

TTL = "Keep this DNS record in your cache for X seconds. After that, fetch a fresh copy."

For example, if your A record has a TTL of 3600, DNS servers will cache your IP address for 1 hour (3600 seconds) before checking if it has changed.

How TTL Works

Here's what happens when someone visits your website:

1

User types your domain

Their browser asks their DNS resolver for your IP address.

2

DNS resolver checks cache

If it has a cached record that hasn't expired (TTL not reached), it returns that immediately.

3

If expired or not cached

The resolver queries your authoritative DNS server for fresh data.

4

New record is cached

The resolver stores the new record and starts the TTL countdown again.

This is why DNS changes take time to propagate - servers worldwide have cached your old record and won't check for updates until their cached TTL expires.

Common TTL Values

TTL is always specified in seconds. Here are common values and their human-readable equivalents:

TTL (seconds)Human ReadableUse Case
601 minuteFailover services, testing
3005 minutesFrequent changes expected
36001 hourStandard, balanced choice
144004 hoursStable records
8640024 hoursRarely changing records
6048001 weekVery stable, maximum caching

When to Use Low vs High TTL

Use Low TTL (60-300s) When:

  • • Planning to change DNS soon
  • • Using DNS-based failover
  • • Testing new configurations
  • • Migrating to new hosting
  • • Records change frequently

Use High TTL (3600-86400s) When:

  • • Records are stable/rarely change
  • • Want faster DNS resolution
  • • Reducing load on DNS servers
  • • Better resilience if DNS goes down
  • • Cost savings (fewer queries)

Pro Tip: Lower your TTL 24-48 hours before making DNS changes. This ensures caches have the low TTL value when you make the actual change.

How to Check Your TTL

You can check the current TTL of your DNS records using command line tools:

# Using dig (Mac/Linux)

dig example.com A +noall +answer

# Output shows TTL (the number before "IN")

example.com. 3600 IN A 93.184.216.34

Check TTL with DNSFly

Our DNS propagation checker shows TTL values alongside your DNS records from 20+ global locations.

Check DNS Records

How to Change TTL

TTL is set in your DNS provider's control panel. The exact steps vary by provider, but generally:

1

Log into your DNS provider (Cloudflare, GoDaddy, Namecheap, etc.)

2

Navigate to DNS settings or DNS zone editor

3

Find the record you want to modify

4

Look for "TTL" field (sometimes hidden under "Advanced")

5

Enter new value in seconds and save

Note: Some providers show TTL as a dropdown (Auto, 1 min, 5 min, etc.) instead of raw seconds. "Auto" typically means the provider's default, usually 300-3600 seconds.

? Frequently Asked Questions