Skip to content

SOA serial bumping — why it matters in a cPanel DNS cluster

The SOA serial is how slaves know to refresh a zone. Edit a zone without bumping the serial and the cluster sits silent on the old data.

A new TXT record gets added on the master cPanel host. dig against the master returns the new record. dig against the slave returns the old record. The cluster’s dnsadmin log shows no errors. Both nodes have green status. The reason: the master’s SOA serial didn’t increment, the slave’s existing copy looks just as fresh as the master’s, and AXFR-style sync uses serials to decide whether to fetch.

What’s happening

Every zone has a SOA record with a serial number. The serial is a 32-bit integer that should monotonically increase. Slaves and dependent resolvers use the serial to decide whether their cached copy is stale: if the slave’s serial matches the master’s, the slave’s copy is current; if the master’s serial is higher, the slave fetches.

cPanel’s zone editor and whmapi1 bump the serial automatically on every change. The convention is YYYYMMDDNN — year, month, day, two-digit counter that resets daily. So 2026051907 means May 19, 2026, seventh change today.

When the serial does not bump:

  • Direct edits with vi to the zone file don’t bump unless you increment manually.
  • Some whmapi1 calls succeed but don’t increment if cPanel decides nothing meaningful changed.
  • A failed sync that left the slave with a stale copy but the same serial silently locks in the drift.

Without a bump, named may not even reload the zone — it sees the same serial as the in-memory version and ignores the file change.

How to verify

Check the current serial:

dig +short SOA example.com | awk '{print $3}'
grep -m1 SOA /var/named/example.com.db | grep -oE '[0-9]{10}'

Both should match. If /var/named/example.com.db has a higher serial than named is serving, named didn’t reload.

Compare across cluster:

for ns in master slave1 slave2; do
  echo -n "$ns: "
  dig @$ns +short SOA example.com | awk '{print $3}'
done

All should match. If they don’t, sync is broken.

What to do

  1. For UI or whmapi1 edits, the serial bumps automatically. Verify after the change that it did:
whmapi1 dumpzone domain=example.com | head -5
  1. For direct file edits, bump the serial manually before saving. The standard format:
2026051907 ; serial (YYYYMMDDNN)

Increment the last two digits. If you’ve already done seven changes today and you’re on 2026051907, the next is 2026051908. After 99 changes in a day (unusual), roll over to the next day’s 2026052000.

  1. After saving, reload named and force sync:
named-checkzone example.com /var/named/example.com.db
rndc reload example.com
/scripts/dnscluster synczone example.com
  1. If a slave is out of sync and the serial matches but data differs, force-sync from the master:
/scripts/dnscluster synczone example.com
ssh slave "rndc reload example.com"
  1. For serial-number overflow (the 32-bit max is 4294967295 — far in the future for YYYYMMDDNN format, but if you used Unix timestamps you might run into it), rolling back to a lower serial requires careful handling. The rollback procedure: increase the serial to 2^31 above the previous one (effectively wrapping), wait for slaves to catch up, then issue the actual lower serial. Most operators never hit this.

A common gotcha: when migrating zones from a different DNS provider that used a different serial scheme (Unix timestamp, sequential), the imported zone’s serial might be lower than what cPanel would have used. cPanel’s next edit will jump the serial forward — that’s harmless, but it can look like a huge increase in logs. Don’t panic.

Stack Harbor monitors SOA serials across DNS clusters as part of cPanel server management.