Christophe CasalegnoAutoimmune warrior, Entrepreneur & Bio/Hacker

brain@127.0.0.1:~$ cat post.html

Bind: how to modify the serial numbers of all your DNS zones with sed

You can simply use the sed command to do this:

Go to your DNS zone directory and run:

<em>sed -i -e "s/2[0-9]\{9\}/yourserialnumber/g" path_to_your_dns_zone_files/*.hosts</em>

Example:

<em>sed -i -e "s/2[0-9]\{9\}/2012011901/g" /var/lib/named/var/named/master/*.hosts</em>

That’s done, you can just restart Bind :)

 

–
Christophe Casalegno
http://twitter.com/Brain0verride
http://www.facebook.com/brain.override

Leave a comment

Add a comment
Christophe Casalegno Brain 0verride

Keep it simple
and direct!