go ahead... be a heretic | |
PerlMonks |
Re: Parsing Zonefilesby fokat (Deacon) |
on Aug 05, 2004 at 17:36 UTC ( [id://380335]=note: print w/replies, xml ) | Need Help?? |
Hi there: I don't know if you did look at it, but Net::DNS::ZoneFile will parse most BIND zone files, returning a list of Net::DNS::RR objects as the result. You can then act on the objects themselves, remove them from the list or add new ones. Finally, you can simply print them to a new file. The pseudo-code would look like:
Feel free to ask if you need further help with this code... Best regards -lem, but some call me fokat
In Section
Seekers of Perl Wisdom
|
|