1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
NAME
BIND-Conf_Parser - a module for parsing BIND version 8 named.conf files
DESCRIPTION
This module allows a script to understand the contents of a BIND
version 8 (and sometimes version 9) named.conf file. Why would you
want to parse your /etc/named.conf file? Well, let's say you're a
sysadmin and you've gotten tired of mismatches between your DNS
forward and reverse zones, and you want a tool that'll check your
zone files for inconsistencies and typos. How's that tool going to
get the complete list of zone files? Tah da, enter this module, stage
right! The verify_zones script included with this module does
exactly the above, and may even work at your site.
Truth be told, finding zone files is all I currently use it for.
However, it handles the complete syntax, so perhaps you can think
of other users.
The name of this module is perhaps not the best. Suggestions
are welcome.
This revision matches BIND version 8.2.2. Some capability to not
throw fatal exceptions when parsing version 9 configuration files
has been added, but it is far from complete.
THANKS
The design of this module was inspired by Gisle Aas's HTML::Parser
module.
REQUIREMENTS
This module is known to work with perl-5.6.0, perl-5.005_02 and
perl-5.005_03, and is believed to work with Perl5.004. However, it
is sensitive to changes in the semantics of the pos() function and
/\G.../g matching. Indeed, the 5.004 -> 5.005 upgrade broke an
earlier version of this module. You Have Been Warned.
The parse() method requires that the IO::Scalar module from the
IO-stringy kit be installed.
DOCUMENTATION
The BIND::Conf_Parser module has been PODified, but good
descriptions of the data structures are, well, missing. The
examples in the POD may be enough to get one started.
MISSING
An automated test suite, for starters. I 'test' this using the
named.conf at where I work, but the coverage of that test is pretty
poor.
Support for the new statements supported by BIND 9.0.0 would be
nice.
AVAILABILITY
Currently, BIND-Conf_Parser can be found under:
ftp://ftp.gac.edu/pub/guenther/
I.e.,
ftp://ftp.gac.edu/pub/guenther/BIND-Conf_Parser-0.95.tar.gz
AUTHOR
BIND-Conf_Parser was created by Philip Guenther <guenther@gac.edu>.
Some very preliminary changes were made to parse a few version 9
configuration files by Ivan Kohler <ivan-bind-confparser@420.am>.
|