Admin-Ahead Community
Linux => General Linux => Topic started by: lijeshk on November 03, 2013, 02:16:30 pm
-
In case all DNS zone files on the server need to be refreshed by altering the serial number, this can be done as follows:
--
for i in `ls /var/named/*.db` ; do cat $i | sed ‘s/[0-9]\{10\}/2013110301/g’ > $i.new; mv -f $i.new $i; chown named.named $i ;done
--
This will set serial for DNS zone files to 2013110301. Please reload BIND after wards as follows:
[root@System ~]# rndc reload
server reload successful
--
:)