Source : https://forums.cpanel.net/threads/bulk-dns-zone-update.351991/
You can replace multiple or all dns /(ip address in dns zone )entries in centos linux cpanel.
1. Back up ALL DNS Zonefiles.
Code:
cp -rpf /var/named /var/named.backup
2. Update the Nameserver’s in ALL DNS Zonefiles:
Code:
replace "cpanel1.company.net" "cpdns1.company.net" -- /var/named/*.db
3. Update the Serial/Timestamp in ALL DNS Zonefiles:
Code:
grep "serial, todays" /var/named/*.db | sed "s/://g" | cut -d/ -f4 | awk {'system("replace "$2" "strftime("%Y%m%d")"00 -- /var/named/"$1)'}
