How to Mass Update Serial Numbers of DNS Zones in cPanel WHM Server

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:

  1. SSH your server as root-equivalent user.
  2. First, take a backup of the entire /etc/named directory in case any errors occur and you need to restore the previous versions:
    cp -av /var/named /var/named-backup
  3. 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
  4. 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
  5. 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.

  • dns zone, dns cluster, dns server, nameservers
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...

How to Customize cPanel Installation

This article provides a guide for customizing a cPanel server installation, using the...