Skip to content
Domains and DNS2 min read

What is TTL (Time To Live) in DNS?

Short answer

TTL (Time To Live) is a number in seconds attached to every DNS record that tells resolvers and devices how long they may cache it before asking again. A lower TTL makes changes show up faster; a higher one means fewer lookups.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How TTL works
  2. Practical example: moving a site with minimal downtime
  3. Common misconceptions
  4. On ArabyHost

Every DNS answer comes with an expiry time. When a resolver looks up your site, it keeps the answer in its cache for the TTL and hands it to everyone who asks afterwards without going back to your nameservers. That keeps DNS fast and light, but it also means a change doesn’t reach everyone until the old TTL runs out.

How TTL works

TTL appears in every record as a number of seconds:

example.com.   3600   IN   A   203.0.113.10

Here 3600 means the answer is valid for one hour. If a resolver looks up the domain at 10:00 and you change the A record at 10:05, that resolver keeps sending its users to the old address until about 11:00.

Seconds Duration When to use it
300 5 minutes Before a migration or while testing
3600 1 hour A sensible default for most records
14400 4 hours Records that rarely change
86400 1 day Static records such as TXT verification

Practical example: moving a site with minimal downtime

  1. A day or two before the move, lower the TTL of the root A record and www to 300.
  2. Wait until the old TTL has fully expired.
  3. Switch the address to the new server; most visitors follow within minutes.
  4. Once the site is confirmed working, raise the TTL back to 3600 or more.

You can see the remaining TTL in the answer with dig example.com or the DNS lookup tool.

Common misconceptions

  • Lowering TTL after the change doesn’t help: resolvers that cached the old value will wait out the old TTL in full.
  • TTL isn’t site speed: it’s only how long a DNS answer is cached; it says nothing about how fast the server is.
  • Not every resolver obeys exactly: some networks keep answers a little longer, which is why people talk about DNS propagation.

On ArabyHost

When your domain points to ns1.arabicode.com and ns2.arabicode.com, the essential records are created for you, and you can change the TTL of any record from the control panel’s DNS editor. If you’re moving an existing site to us, follow the TTL steps above and use our free migration help.

FAQ

What TTL should I use?

For records that rarely change, 3600 to 86400 seconds is fine. Before moving a site or changing server IPs, drop it to 300 at least a day ahead, then raise it again once things are stable.

Does a low TTL slow my site down?

Barely. Some visitors will need an extra DNS lookup now and then, which takes milliseconds.

Does my TTL affect nameserver changes?

Nameserver changes depend on the TTL of the NS records at the extension's servers, which is usually long and outside your control. That's why they can take up to 48 hours whatever your own TTL is.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.