<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Jeff. I prefer your way better, more eloquent than the brute
force method I did.<br>
<br>
-John<br>
<br>
Jeff Lightner wrote:
<blockquote
cite="mid:99E6A67A9DA87041A8020FBC11F480B302FA2BFC@EXVS01.dsw.net"
type="cite">
<pre wrap="">I guess "[done]" was a key point of your subject. Oh - well at least
its there for the archives.
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:bind-users-bounces@lists.isc.org">bind-users-bounces@lists.isc.org</a>
[<a class="moz-txt-link-freetext" href="mailto:bind-users-bounces@lists.isc.org">mailto:bind-users-bounces@lists.isc.org</a>] On Behalf Of Jeff Lightner
Sent: Tuesday, March 24, 2009 3:42 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:jvo@eagle.net">jvo@eagle.net</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>
Subject: RE: Make changes en mass [done]
If all your zones have same value (e.g. 604800) for expire and nothing
else matches that value in the files you could do it fairly easily with
a for loop and sed:
For example if all your zone files were named with a .com at end of
name:
for zonefile in `ls *.com`
do sed -e s/604800/709600/ $zonefile >${zonefile}.new
mv $zonefile ${zonefile}.old
mv ${zonefile}.new $zonefile
done
The sed would find the 604800 in the zone file and replace it with
709600. You then have it send the sed output to a file with same zone
name with .new appended. You then save the original zone file (for
backout planning) and finally move the new zonefile over the original.
TEST THE ABOVE IN AN ALTERNATE LOCATION FIRST!!!
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:bind-users-bounces@lists.isc.org">bind-users-bounces@lists.isc.org</a>
[<a class="moz-txt-link-freetext" href="mailto:bind-users-bounces@lists.isc.org">mailto:bind-users-bounces@lists.isc.org</a>] On Behalf Of John D. Vo
Sent: Tuesday, March 24, 2009 2:46 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:jvo@eagle.net">jvo@eagle.net</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>
Subject: Re: Make changes en mass [done]
I used WinSCP and just select a bunch of files and edit command and
copy/paste the "good' settings into the zone files.
-Thanks.
-John
John D. Vo wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Greetings:
According to <a class="moz-txt-link-freetext" href="http://thednsreport.com">http://thednsreport.com</a>, my "expire" time for my zones
are too short (recommended 2-4 weeks) and
my SOA record is not good.
Is there a tool that I can use to make changes to all my zones in one
swoop?
Thanks,
Solaris/Bind 9.2.2. (yes, it is ancient)
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
----
Best Regards,
John D. Vo
Eagle Teleconferencing Services, Inc.
Network-System Administrator
<a class="moz-txt-link-abbreviated" href="mailto:jvo@eagle.net">jvo@eagle.net</a>
Office: (212) 200-2000 Ext. 105
Cell: (212) 200-3016
---
</pre>
</body>
</html>