← Back to Learning Hub

DNS Records • Intermediate • 5 min read

Fix: SOA Refresh Value Is Outside the Recommended Range

A DNS health check warns that your SOA refresh is outside the recommended range. Here is what the SOA timers mean, the RFC 1912 ranges, and the value to set.

A DNS health report flags "SOA refresh value is outside of the recommended range" when the second number in your zone's SOA record falls outside the window most validators expect, usually the RFC 1912 guidance of roughly 20 minutes to 12 hours. It is a warning, not a failure: your zone still answers queries and mail still flows. But the refresh timer governs how quickly secondary nameservers notice zone changes the slow way, so a wildly high or low value is worth correcting. This article explains the four SOA timers, the ranges validators check against, why the warning matters far less than it did before NOTIFY existed, and the exact value to set to clear it.

What the SOA timers actually control

Every zone has exactly one SOA (Start of Authority) record, and its rdata carries five fields after the primary nameserver and the responsible-party address. A live lookup makes them easy to read:

dig +short SOA example.com
ns1.example.com. hostmaster.example.com. 2026111501 3600 600 1209600 3600

Reading left to right after the two names: the serial (2026111501), then refresh (3600), retry (600), expire (1209600), and the negative-cache TTL (3600), all in seconds. The refresh value is the one the warning is about. It tells a secondary nameserver how long to wait, after its last successful check, before polling the primary again to compare serial numbers and decide whether to pull a fresh copy of the zone.

Retry is how long a secondary waits to try again after a failed refresh. Expire is how long a secondary keeps serving the zone when it cannot reach the primary at all before it gives up and returns SERVFAIL. The last field is the negative-caching TTL, which controls how long resolvers remember an NXDOMAIN answer for names in the zone.

The ranges validators check

Most health checkers follow the suggestions in RFC 1912 section 2.2, which recommends these windows:

SOA fieldRecommended rangeCommon value
Refresh1200 to 43200 s (20 min to 12 h)3600 or 7200
Retry180 to 900 s (3 to 15 min)600
Expire1209600 to 2419200 s (2 to 4 weeks)1209600
Negative TTL3600 to 86400 s (1 h to 1 day)3600

You usually trip the refresh warning in one of two ways. Either the value is too low, such as 300 seconds, which makes secondaries hammer the primary with needless SOA queries every five minutes, or it is far too high, such as 86400, which means a secondary that misses a NOTIFY could serve stale data for a full day before polling again. A value like 3600 or 7200 sits comfortably in the middle and clears the warning on virtually every validator.

Why refresh matters less than it used to

The refresh timer describes the old pull model, where secondaries learned about changes only by periodically polling. Modern zones rarely rely on it. When you edit a zone, the primary sends a DNS NOTIFY message (RFC 1996) to its secondaries immediately, and each secondary responds by requesting the new serial and pulling the delta with IXFR (incremental transfer, RFC 1995) or a full AXFR. Propagation to secondaries therefore happens in seconds, not on the refresh schedule.

Refresh is the fallback for when a NOTIFY is lost, a secondary was offline when the change happened, or NOTIFY is not configured between a particular primary and secondary pair. That safety net is the reason you should not set refresh to something absurd even though it rarely fires: if NOTIFY ever fails, refresh is the only thing that eventually heals the discrepancy.

How to clear the warning

Set refresh to a value inside the recommended window and let your serial bump so secondaries pick up the edit. A solid, boring default set looks like this:

@ IN SOA ns1.example.com. hostmaster.example.com. (
        2026111502 ; serial
        7200       ; refresh (2 hours)
        600        ; retry   (10 minutes)
        1209600    ; expire  (2 weeks)
        3600 )     ; negative TTL (1 hour)

If you run a hosted DNS provider, the SOA is often managed for you and these fields appear in an advanced panel rather than a raw zone file; change refresh there and save. After the change, confirm the new value is live rather than trusting the panel by reading the published SOA with a DNS lookup, which returns the authoritative SOA so you can see refresh, retry, expire, and the serial exactly as resolvers see them.

Frequently asked questions

Will an out-of-range refresh value break my DNS?

No. It is a best-practice warning, not an error. Your zone resolves normally. The risk is purely that secondaries could serve stale data longer than ideal if a NOTIFY is ever missed, because refresh is the fallback polling interval.

What refresh value should I use?

3600 (one hour) or 7200 (two hours) are safe choices that satisfy essentially every validator. Both sit inside the RFC 1912 window of 20 minutes to 12 hours and keep secondary polling reasonable.

Does lowering refresh make my DNS changes propagate faster?

Not in any meaningful way on a modern setup. Change speed to secondaries is driven by NOTIFY and IXFR, which fire the moment you edit the zone. Visitor-facing propagation is driven by the per-record TTL, not by SOA refresh.

Why does the warning mention retry and expire too?

Some checkers validate the whole timer set and will flag retry or expire by the same ranges. Retry should be a few minutes, expire should be two to four weeks, and keeping all four inside their windows clears every related warning at once.

How do I see my current SOA values?

Query the record directly. dig SOA yourdomain.com or nslookup -type=SOA yourdomain.com both print the five fields, or use a DNS lookup tool that reads the authoritative answer so you are checking the live record and not a cached copy.

The SOA refresh warning is one of the easiest DNS health findings to resolve: pick a value between 20 minutes and 12 hours, bump the serial, and confirm the result. Read your live SOA anytime with the DNS lookup tool to verify the fix landed before you close the ticket.

Troubleshooting box

If results look inconsistent, compare authoritative nameservers first, then recursive resolvers by region. Capture snapshots every 10 minutes for deterministic incident timelines.

Try VallaDNS free →

Intermediate • 7 min

How to Check If DNSSEC Is Valid on a Domain

Enabling DNSSEC is not the same as validating. Check that the parent DS matches your DNSKEY, that RRSIGs verify, and read the AD flag to prove the chain works.

Intermediate • 6 min

How to Find a DNS Record's TTL (Current Value)

Find the TTL currently set on a DNS record: read the TTL column in dig and nslookup, tell the authoritative TTL from a resolver's countdown, and confirm a change.

Intermediate • 7 min

How to Check If Nameservers Have Propagated

Nameserver changes live at the parent TLD and follow the registry NS TTL, not your zone. Check the parent delegation and confirm the new NS set worldwide.