Skip to content

rndc reload, reconfig and retransfer on a cPanel server

rndc controls BIND, the DNS server on many cPanel hosts. See what reload, reconfig, retransfer, notify and zonestatus do, and when a cPanel script fits.

rndc is the command-line tool that controls named, the BIND DNS server, on cPanel servers that run BIND rather than PowerDNS. The commands people look up most are easy to mix up. rndc reload example.com re-reads one zone file, so it is the one to run after you edit a zone. rndc reconfig re-reads named.conf and loads any new zones, so it is the one to run after you add a zone. rndc retransfer example.com makes a secondary server pull a fresh copy of the zone right away, and rndc notify example.com tells the secondaries to come and get it. rndc zonestatus example.com shows what named holds in memory for one zone: its type, the file it came from, the SOA serial it is answering with, and when it last loaded. Each subcommand below comes with the output it really prints. On a cPanel server named is not the only process writing zone files, so the jobs that belong to a cPanel script instead are flagged.

What you’ll accomplish

  • Confirm the rndc control channel is answering, and read what named reports about itself.
  • Pick the correct subcommand from what actually changed, instead of restarting the daemon by reflex.
  • Read the real output of zonestatus, reload, reconfig, notify, freeze and thaw so you can tell success from a silent no-op.
  • Recognize the four or five commands that fight cPanel’s own DNS tooling, and what breaks when you run them anyway.
  • Verify from the outside that a change landed on the master and reached the slaves.

Prerequisites

You need a root shell on the cPanel/WHM server. rndc lives at /usr/sbin/rndc and is installed with BIND.

Before anything else, confirm BIND is what the server is running. cPanel has shipped PowerDNS as the default nameserver for new installations for several years now, and many upgraded servers were migrated to it. On a PowerDNS host there is no rndc control channel at all, and nothing on this page applies:

grep -i '^local_nameserver_type' /var/cpanel/cpanel.config

You want local_nameserver_type=bind. If it prints powerdns, stop here and use pdns_control and /scripts/restartsrv_pdns instead. Cross-check against what is actually up:

systemctl is-active named pdns

BIND versions differ across the RHEL family — 9.11 on the older releases, 9.16 or newer on AlmaLinux 9 — and the exact line wording of rndc status shifts slightly between them. The subcommand names and their behaviour have been stable for well over a decade.

How it works

rndc never touches a zone file. It is a small client that opens a TCP connection to a control channel — 127.0.0.1 port 953 by default — authenticates with a shared HMAC key, and asks the running named process to do something to its own in-memory state.

Diagram of the rndc control path to named alongside the cPanel dnsadmin path that writes the same zone files

Both ends read the same key file. /etc/rndc.key looks like this:

key "rndc-key" {
	algorithm hmac-sha256;
	secret "K4pE0nT7yQ9sJ2mV6xR1bZ==";
};

And named.conf includes it, then names it in the controls block:

include "/etc/rndc.key";

controls {
	inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
};

When those two disagree, every rndc command fails with a key error rather than a connection error — and that distinction is the fastest triage you have. A refused connection means named is down or the controls block is missing. A closed connection means the key is wrong.

The half most BIND documentation leaves out is the right-hand column of that diagram. On a cPanel host, dnsadmin is the process that owns zone files: it writes /var/named/*.db, edits named.conf, bumps the SOA serial itself, pushes the result to every DNS cluster peer, and issues its own reload. rndc publishes whatever is on disk at that moment. It does not know a cluster exists.

Step-by-step

  1. Confirm the control channel answers. rndc status is the first command in any BIND incident, because it separates “the daemon is broken” from “my change did not apply”:
rndc status
version: 9.11.4-P2-RedHat-9.11.4-26.P2.el7 (Extended Support Version)
running on srv01.example.com: Linux x86_64 3.10.0-1160.el7.x86_64
boot time: Mon, 01 Sep 2026 04:12:07 GMT
last configured: Thu, 04 Sep 2026 13:19:52 GMT
configuration file: /etc/named.conf
CPUs found: 8
worker threads: 8
number of zones: 1462 (0 automatic)
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/900/1000
tcp clients: 1/150
server is up and running

Two lines earn their keep. last configured is when the configuration was last read — if it is older than your edit, your reconfig never ran. number of zones is the count named believes it is serving; if you just added a zone and this did not go up by one, the zone is not loaded no matter what the file says.

  1. Read one zone’s live state with zonestatus. This is the command that answers “is the server actually serving what I wrote?”:
rndc zonestatus example.com
name: example.com
type: master
files: /var/named/example.com.db
serial: 2026090402
nodes: 27
last loaded: Thu, 04 Sep 2026 13:22:41 GMT
secure: no
dynamic: no
reconfigurable via modzone: no

serial is the number named is answering with, taken from memory. Compare it to the file on disk. If the file says 2026090403 and zonestatus says 2026090402, the zone was edited and never reloaded — and every downstream resolver is still being told the old story. last loaded gives you the timestamp to compare against your edit. type tells you whether this node is a master or a slave for the zone, which decides half of what follows.

  1. reload after editing a zone, reconfig after adding one. This is the distinction the whole page turns on. reload re-reads zone data. reconfig re-reads named.conf. A zone that is not yet in named.conf cannot be reloaded, because as far as named is concerned it does not exist.
rndc reload example.com
zone reload up-to-date

That message means named compared the file and found nothing newer — usually because you forgot to bump the SOA serial. When the serial did move, you get zone reload queued instead. Reloading everything is one command and prints one line:

rndc reload
server reload successful

After a named.conf change, always validate before you apply. named-checkconf is silent on success, and rndc reconfig is silent on success too:

named-checkconf && rndc reconfig

If named-checkconf prints anything, reconfig will not run — which is the point. A reconfig against a broken configuration leaves named running happily on the previous one while you assume the change took.

  1. Slaves: refresh, retransfer and notify. These three get confused constantly, and they do genuinely different things.

rndc refresh <zone> runs on a slave. It schedules the normal refresh check early: named queries the master’s SOA and only transfers if the serial moved. rndc retransfer <zone> also runs on a slave, but skips the SOA comparison entirely and pulls a full transfer unconditionally — the right tool when you suspect the slave’s copy is corrupt rather than merely old. Both are silent on success; watch the log for the result.

rndc retransfer example.com

rndc notify <zone> runs on the master. It resends the NOTIFY message to every slave listed for the zone, which is what you want when the master is current, the slaves are not, and you would rather nudge them than log into each one:

rndc notify example.com
zone notify queued

If NOTIFY is being sent and the transfer still never happens, the problem is allow-transfer or a firewall on TCP 53, not rndc. That path is covered in BIND master/slave zone transfers.

  1. Cache: flush, flushname and dumpdb. These only matter if named is recursing. A cPanel nameserver serving authoritative zones normally has recursion off, so flushing its cache fixes nothing and you should look elsewhere.
rndc flushname www.example.com
rndc flush
rndc dumpdb -cache

All three are silent. flushname drops one name instead of the entire cache, which is almost always what you want on a resolver with real traffic. dumpdb -cache writes the current cache to the path in the dump-file option, /var/named/data/cache_dump.db by default — read it there, not from the terminal.

  1. freeze and thaw, and the trap in them. freeze suspends dynamic updates for a zone and flushes the journal file into the zone file so it is safe to edit by hand. On an ordinary static cPanel zone it simply refuses:
rndc freeze example.com
rndc: 'freeze' failed: not dynamic

On a zone that is dynamic — anything accepting DDNS updates, or an inline-signed DNSSEC zone — the pair is mandatory: freeze, edit the file, bump the serial, thaw.

rndc thaw example.com
The zone reload and thaw was successful.

The trap is forgetting the thaw. A frozen zone silently refuses every dynamic update from then on, including the key maintenance an inline-signed zone performs on its own schedule. Nothing errors on the console, nothing pages, and the breakage surfaces weeks later as expired DNSSEC signatures. Never leave a shell with a zone still frozen.

  1. Know what not to run here. rndc stop halts named with no restart behind it; the host serves no DNS until a human notices. rndc addzone and rndc delzone write to a named.conf that cPanel regenerates, so your zone disappears on the next rewrite. And a hand-edit plus rndc reload on a DNS cluster member is undone the moment dnsadmin next pushes that zone.

Decision table mapping what changed in DNS to the matching rndc subcommand

What you want to doThe rndc commandThe cPanel-safe equivalent
Publish an edit to a zone filerndc reload example.comWHM » DNS Functions » Edit DNS Zone, which reloads for you
Serve a zone you just addedrndc reconfigwhmapi1 adddns domain=example.com ip=203.0.113.10
Pull a fresh copy onto a slaverndc retransfer example.comWHM’s Synchronize DNS Records tool
Tell slaves a zone changedrndc notify example.comdnsadmin already pushes to every cluster peer
Restart a wedged daemonrndc stop, then start it again/scripts/restartsrv_named
See what is loaded for a zonerndc zonestatus example.comwhmapi1 dumpzone zone=example.com

The pattern is consistent: read-only rndc subcommands are always safe, and the write ones are safe only on a standalone server that no cluster is pushing to.

Validate it works

Never trust the absence of an error. Check the serial named is serving against the serial in the file:

grep -i serial /var/named/example.com.db
rndc zonestatus example.com | grep -i '^serial'
dig @127.0.0.1 example.com SOA +short

All three should agree. dig against 127.0.0.1 is the honest one — it asks the daemon the same way a resolver would, over the wire, rather than asking it about itself.

Then confirm the slaves caught up:

dig @ns2.example.com example.com SOA +short

If the slave’s serial still trails after a notify, the log has the reason:

grep -i 'example.com' /var/log/messages | tail -20
tail -50 /var/named/data/named.run

/var/log/messages carries the syslog-routed output on a RHEL-family cPanel host; /var/named/data/named.run is BIND’s own channel when the configuration defines one. Transfer results, refused zones and reload failures all land in one of the two.

Troubleshooting

rndc: connect failed: 127.0.0.1#953: connection refused — nothing is listening on the control channel. Either named is not running (systemctl status named), or the controls block is missing or bound to a different address. Confirm with ss -lntp | grep 953.

rndc: connection to remote host closed, followed by a list that includes “this host is not authorized to connect” and “the key is invalid” — the connection succeeded and authentication failed. This is the classic post-restore or post-migration failure: an old /etc/rndc.key was put back on disk while the running named still holds the key it read at start. Regenerate and restart so both sides read the same file:

rndc-confgen -a -b 256
/scripts/restartsrv_named

Also check for a stray /etc/rndc.conf — if one exists with its own inline key, rndc uses that and ignores /etc/rndc.key entirely.

rndc: 'reload' failed: not found — the zone name is misspelled, has a trailing dot you did not intend, or is genuinely not in named.conf. Confirm before you reach for anything heavier:

grep -c "zone \"example.com\"" /etc/named.conf

A count of 0 means you needed reconfig after adding the zone, not reload.

reload reports zone reload up-to-date but your edit is not being served — you changed records and left the SOA serial alone. BIND compares serials and declines to reload a zone that claims to be the same version. Bump the serial, check the file, reload again:

named-checkzone example.com /var/named/example.com.db
zone example.com/IN: loaded serial 2026090403
OK

The change was live, then reverted on its own — you are on a DNS cluster member and dnsadmin pushed the authoritative copy back over your hand-edit. Nothing in the rndc output will ever tell you this. Make the change through WHM or the API so it propagates from the owner outward, and if the cluster itself has stopped agreeing with itself, work through diagnosing WHM DNS cluster sync failures first.

When this is the wrong approach

If the zone lives on a WHM DNS cluster, the cluster owns it and rndc is the wrong layer to work at. Anything you do locally is a temporary override that survives exactly until the next push. Use WHM, whmapi1, or the cPanel Zone Editor so the change originates where the cluster expects it.

If the server runs PowerDNS — which is the default on current cPanel installations — rndc is not merely discouraged, it is absent. Use pdns_control and cPanel’s own PowerDNS service scripts.

And if named itself is wedged rather than merely stale — not answering rndc status, or answering but serving nothing — stop debugging subcommands and use /scripts/restartsrv_named, which stops and restarts the service in one step and reports the result. rndc is for surgery on a healthy daemon.

Full subcommand documentation lives in the BIND 9 ARM, and cPanel’s own DNS behaviour is documented at docs.cpanel.net.

If this is the kind of work you’d rather never own again, it’s the daily job of Managed Cloud Ops — book an infrastructure review.