It should not be too hard. Since you have such a rock solid format,
you can safely assume in your case, the last 2 digits are ints always,
always 2 digits long.
Just find the string of chars you are interested in, and substring the
last two. Now you have a number (int) and you can use a l
Todd Snyder wrote:
> I am looking for a clever way to do the new serial number. Date will do
> the first bit no problem (date +%Y%m%d), but I'd love to find a clever
> way to auto increment the last 2 digits unless it's a new day. Then I
> could use the same script every time.
http://www.crufty.
--Original Message-
From: bind-users-boun...@lists.isc.org
[mailto:bind-users-boun...@lists.isc.org] On Behalf Of Jeff Lightner
Sent: Tuesday, March 24, 2009 4:54 PM
To: Alan Clegg; bind-users@lists.isc.org
Subject: RE: Make changes en mass [done]
Good point.
The serial number should be updated
ers-boun...@lists.isc.org
[mailto:bind-users-boun...@lists.isc.org] On Behalf Of Alan Clegg
Sent: Tuesday, March 24, 2009 4:31 PM
To: bind-users@lists.isc.org
Subject: Re: Make changes en mass [done]
John D. Vo wrote:
> Thanks Jeff. I prefer your way better, more eloquent than the brute
> force met
John D. Vo wrote:
> Thanks Jeff. I prefer your way better, more eloquent than the brute
> force method I did.
To this point, nobody has updated the serial.
AlanC
signature.asc
Description: OpenPGP digital signature
___
bind-users mailing list
bind-us
ts.isc.org
[mailto:bind-users-boun...@lists.isc.org] On Behalf Of Jeff Lightner
Sent: Tuesday, March 24, 2009 3:42 PM
To: j...@eagle.net
Cc: bind-users@lists.isc.org
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
gle.net
Cc: bind-users@lists.isc.org
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 e
To: j...@eagle.net
Cc: bind-users@lists.isc.org
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:
> Greetings:
>
> According to http:
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:
Greetings:
According to http://thednsreport.com, my "expire" time for my zones
are too short (recommended 2-4 weeks) and
my SOA record is
Be very careful (test, test, test) before using in production, but
something like:
for file in *.db
> do
> sed -i-03242009 "s/1200/2419200/g" $file
> done
should work.
I'm making a couple of assumptions:
1) all of your zone database files end in .db
2) the -i flag is supported in Solaris sed (I
Hello,
Some folks prefer to script something.
Some may find this tool helpful:
http://www.laffeycomputer.com/rpl.html
I'm sure there are other ways.
HTH
- Original Message
From: John D. Vo
To: bind-users@lists.isc.org
Sent: Tuesday, March 24, 2009 1:03:22 PM
Subject: Make changes e
11 matches
Mail list logo