H
herbert.burnswell
Hi All,
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.
I've installed and read the perldoc information on DNS::ZoneParse but still don't see how to set it up to edit the TTL.
Questions:
- Is DNS::ZoneParse indeed the best way to obtain the desired functionality or is there a better way to do this?
- Does anyone have a code snippet that they've used to edit TTL's?
Any guidance is greatly appreciated.
TIA,
Herb
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.
I've installed and read the perldoc information on DNS::ZoneParse but still don't see how to set it up to edit the TTL.
Questions:
- Is DNS::ZoneParse indeed the best way to obtain the desired functionality or is there a better way to do this?
- Does anyone have a code snippet that they've used to edit TTL's?
Any guidance is greatly appreciated.
TIA,
Herb