Contents
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
- A day or two before the move, lower the TTL of the root A record and
wwwto300. - Wait until the old TTL has fully expired.
- Switch the address to the new server; most visitors follow within minutes.
- Once the site is confirmed working, raise the TTL back to
3600or 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.