Skip to content
FunnelGuard

Fix guide by FunnelsGuard

DNS TTL too long before a migration: how to lower it safely

OPS-045Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Every DNS record has a TTL, a number of seconds. Resolvers (the DNS servers used by ISPs, browsers and phones) cache the answer for that long before asking again. Common defaults are 3600 (1 hour) and 86400 (24 hours).

The problem appears when you plan a migration: a new host, new CDN, new funnel builder or new IP. If the TTL on the A, AAAA or CNAME record is long, the change you make at the DNS provider is not seen everywhere at once. Resolvers that cached the old answer just before your change keep using it until the TTL runs out.

Why it costs you leads or sales

During the overlap, some visitors reach the new server and others reach the old one. Those on the old server may see outdated pages, a broken form that posts to a retired backend, a checkout that no longer records orders, or an error if you shut the old host down. Leads and orders submitted there can go missing, and tracking may be split across two setups.

The impact is usually limited to the cutover window, which is why this is a low-impact issue. But if you paused ads or switched the old server off, the window can hit your busiest hours.

What happens with a long TTL
  1. Change A recordYou point the domain at the new server
  2. Resolver cacheStill holds the old IP for hours
  3. Old serverVisitor lands on retired setup
  4. Form or checkoutLead or order goes nowhere

Visitors whose resolver cached the old IP keep landing on the old server after you switch.

Time until all visitors reach the new serverExample numbers
Time until all visitors reach the new server (example)TTL 86400 (24 h): 24 hours; TTL 3600 (1 h): 1 hours; TTL 300 (5 min): 0.1 hours09182410.1TTL 86400 (24 h)TTL 3600 (1 h)TTL 300 (5 min)hours

Example: worst-case wait after a change, depending on the TTL set before the switch. Numbers are illustrative of the TTL value itself.

How to check if your site has it

Look up the TTL on the records you will change. The number in the answer is the TTL in seconds. Querying your own DNS provider's nameserver shows the full TTL; querying a public resolver shows the remaining time, which counts down.

Check the TTL of your A recordbash
# Ask a public resolver (shows remaining cache time)
dig example.com A +noall +answer

# Find your nameservers, then ask one directly (shows the configured TTL)
dig example.com NS +short
dig @ns1.yourdnsprovider.com example.com A +noall +answer

# Same for www and any funnel subdomain
dig www.example.com +noall +answer
dig go.example.com +noall +answer

The second column of the answer is the TTL, for example example.com. 86400 IN A 203.0.113.10. You can also open the record in your DNS provider's dashboard, where the TTL is shown next to the record.

How to read the TTL you find
TTL (seconds)MeaningBefore a migration
8640024 hoursToo long. Lower it at least 24 hours ahead.
144004 hoursLower it at least 4 hours ahead.
36001 hourAcceptable, but 300 gives a faster cutover.
3005 minutesGood for the migration window.
601 minuteFine for the window, not needed long term.

How to fix it

The order matters. Lower the TTL first, wait, then change the record. Changing the IP and the TTL at the same time does not help, because resolvers keep the old long TTL they already cached.

Lower the TTL, switch, then restore it
  1. List the records you will change

    Usually the root A/AAAA, www CNAME and any funnel subdomain such as go. Note each current TTL.

  2. Lower the TTL to 300 seconds

    Edit only the TTL, keeping the same value (IP or target). Many providers have a TTL dropdown such as 'Auto', '5 min' or '300'.

  3. Wait one full old TTL

    If the old TTL was 86400, wait at least 24 hours before the switch. Check with dig that the new TTL is being served.

  4. Test the new server first

    Before switching DNS, test the new site with a hosts-file entry or the host's preview URL. Submit a test form and confirm it arrives.

  5. Change the record to the new target

    Update the IP or CNAME. Keep the old server running and accepting traffic during the window.

  6. Keep the old server up until traffic stops

    Wait at least the old TTL, and check logs on the old server for remaining hits before shutting it down.

  7. Raise the TTL again

    Once stable, set it back to 3600 or higher to reduce DNS lookups. Keep it low if you expect more changes soon.

Where to change the TTL
  1. Edit TTL at your DNS host

    WordPress does not control DNS. Change the TTL where the domain's nameservers point: your registrar, Cloudflare, or your host's DNS zone editor.

  2. Moving hosts

    Lower the TTL first, then update the A record to the new host's IP. Keep the old host live until traffic has moved.

Zone file example with a short TTLtext
; before the move: lower TTL, same value
example.com.  300  IN  A      203.0.113.10
www           300  IN  CNAME  example.com.

; at cutover: change the value, keep TTL short
example.com.  300  IN  A      198.51.100.25

How to confirm it's fixed

Confirm the cutover worked
  • dig against your own nameserver shows the new IP and a TTL of 300
  • Public resolvers such as 8.8.8.8 and 1.1.1.1 return the new IP
  • The site loads from the new server on mobile data and on a second network
  • A test form submission reaches your inbox and CRM
  • Analytics and ad tags fire on the new site
  • Old server logs show hits dropping toward zero
Compare resolversbash
dig @8.8.8.8 example.com A +short
dig @1.1.1.1 example.com A +short
dig @9.9.9.9 example.com A +short

How to prevent it happening again

Migration habits
  • Add 'lower TTL' as the first item on every migration plan
  • Record the TTL of each important record in your site documentation
  • Schedule the TTL change at least one old-TTL period before the move
  • Plan cutovers for a quiet traffic period
  • Keep the old host live for at least the old TTL after switching
  • Raise the TTL again after the migration is stable
A safe migration schedule (Example)
  1. Day 0

    Lower TTL from 86400 to 300 on the records you will change

  2. Day 1

    Old cached answers have expired. Test the new server.

  3. Day 1, quiet hour

    Change the record to the new IP

  4. Within about 5 minutes

    Most visitors reach the new server

  5. Day 2 to 3

    Retire the old server and raise the TTL to 3600

How FunnelGuard handles this

A DNS TTL setting is outside what FunnelGuard checks. It is a configuration value held at your DNS provider, and checking it needs a DNS lookup or DNS management tool, such as dig, an online DNS lookup service, or a DNS change-monitoring tool.

What FunnelGuard can help with is the journey around a migration. It runs your real lead form or checkout on a schedule from the EU or the US and checks each step, tracking hits and whether test leads reach your inbox and CRM. Running it around the cutover shows whether the journey works on the site visitors actually reach. There is a free plan (1 site, 2 journeys, daily checks, no card), and paid plans have a 3-day free trial.

Frequently asked questions

Questions people ask

What TTL should I set before a website migration?

Set 300 seconds (5 minutes) on the records you will change. Do it at least one full old-TTL period before the switch, for example 24 hours ahead if the old TTL was 86400. Raise it again once the migration is stable.

How long before a migration should I lower the TTL?

At least as long as the current TTL. If the record has a TTL of 86400 seconds, lower it at least 24 hours before you change the IP. Resolvers that cached the old value keep it until that time passes.

Why is my website still showing the old server after I changed the DNS?

Resolvers cache DNS answers for the TTL. Until it expires, some visitors are still sent to the old IP. Check the TTL with dig, and keep the old server running until it has passed.

How do I check the TTL of a DNS record?

Run dig example.com A +noall +answer and read the number after the domain name. For the full configured value, query your own nameserver directly with dig @ns1.yourprovider.com example.com A. Your DNS dashboard also shows it.

Is a low TTL bad for my website?

A low TTL means resolvers look up your record more often, which adds a little DNS traffic and lookup time. For most sites that is minor. Many owners keep 300 during a migration and then return to 3600 or higher.

Can I lower the TTL at the same time as I change the IP?

No, it will not help. Resolvers that already cached the record keep the old long TTL. Lower the TTL first, wait one old-TTL period, then change the IP.

Does FunnelGuard check DNS TTL values?

No. TTL is a DNS setting, so it needs a DNS lookup or DNS monitoring tool. FunnelGuard can run your lead form or checkout journey around a migration to confirm the visitor-facing flow works.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.