go ahead... be a heretic | |
PerlMonks |
Re: How to parse a bind9.x config file (named.conf?)by cosimo (Hermit) |
on Nov 05, 2006 at 10:28 UTC ( [id://582297]=note: print w/replies, xml ) | Need Help?? |
Hi dear anonymous, here it is my first (rough) attempt at parsing BIND 9 style config files. It was meant to be integrated in Config::Auto. Check out Config::Auto version 0.17. http://search.cpan.org/src/COSIMO/Config-Auto-0.17/lib/Config/Auto.pm
Be careful: this code (the bind_style() function) has been removed from v0.18 because it was preliminary code, and the final plan was to integrate with Bind::Config::Parser. I made some experiments trying to parse files with that module, but without success... IIRC, in the Config::Auto 0.17 distribution I put a test script, which works on a sample named.conf file. You could take those as a start point.
In Section
Seekers of Perl Wisdom
|
|