On May 2, 2009, at 4:25 PM, Noel Butler wrote:
On Sun, 2009-05-03 at 08:39, Scott Haneda wrote:
I client of mine has thousands of DNS zones that will need a ttl
chance and a serial bump. I want to set a relevant ttl to 300 for a
few days.
After that, an IP address change will be made, and I would like to
change the TTL back to something sane. The general format of the
zone
looks something like below.
Any suggestions
perl substitutions would be your friend, had to do this myself a
few years back, but the key is do fresh backup /var/named first,
then try: perl -pi -e "s/2009....../2009050301/g;" *
Maybe again with 2008/7/6 how ever many years you think it goes
back, and don't miss out any of the periods after the year to avoid
missing exact hits.
Again for the TTL, if you have inline hostname specific TTLs, that
will be tricky and I've never had to do them en mass so maybe
someone else has a better way
Might be good idea to copy a few zonefiles to /tmp to play with
first, before you do the live zones, and inspect them.
Cool, thanks. I do not know that I have any inline ttl's set, I
certainly think if there are, they will be few, and I can hand change
them first. Would you say the 'refresh' value would be the one I
should target? I am going to change it to something like 299 seconds,
so it is dead simple to find on in the future. Thank goodness the
serial is in a format of all numbers and a fixed length in my case.
--
Scott * If you contact me off list replace talklists@ with scott@ *
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users