On 2012-05-04 23:21,
<> wrote:
> I'm looking to write a perl script to edit TTL's in zone files. Ideally, I'd like to write it as:
>
> ./script -f <filename> <newTTL>
>
> and
>
> ./script -d <directoryname> <newTTL>
>
> to either edit just one file or all files in a directory.
Not a direct answer to your question, but it may simplify the problem:
If you want all the records in the zone file to have the same TTL,
add a $TTL directive at the top and omit the TTL in the individual
records.
hp
--
_ | Peter J. Holzer | Deprecating human carelessness and
|_|_) | Sysadmin WSR | ignorance has no successful track record.
| | |
|
__/ |
http://www.hjp.at/ | -- Bill Code on