This article provides a guide for how to mass update serial numbers of DNS zones in cPanel WHM server. This guide requires root-equivalent access to a cPanel VPS or cPanel dedicated server.
How to Mass Updated Serial Numbers of DNS Zones in cPanel WHM Server
To mass update serial numbers of DNS zones in cPanel WHM server, follow the steps provided below:
- SSH your server as root-equivalent user.
- First, take a backup of the entire
/etc/nameddirectory in case any errors occur and you need to restore the previous versions:cp -av /var/named /var/named-backup
- Now, run the following command (which will incrementally update any DNS zone serials that begin with '202')::
perl -pi -e 'if (/\s+(202\d{7})/i) { my $i = $1+1; s/$1/$i/; }' /var/named/*db - After updating the serial, your DNS server must reload the zones, depending on the name server used the command will vary:
PowerDNS:
pdns_control bind-reload-now example.tld
Bind:
rndc reload
- Lastly, if using DNS cluster with cPanel initiate a sync for all zones:
/scripts/dnscluster syncall
Conclusion
You now know how to mass update serial numbers of DNS zones in cPanel WHM server.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.