Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

'd evening, dear monkers,

just wondering if there is new knowledge around regarding the ways available to parse bind9.x config files (named.conf).

I've had a look on SuperSearch and found an - older - node (157596) containing some ideas, but so far I'm rather unhappy with everything I tried (admittedly, rather superficial, stepping back at the first problem encountered with each approach).

Here's what I looked over so far:
  1. BIND::Conf_Parser - doesn't deal with 9.x
  2. BIND::Config::Parser - bails out with 'Bad text' on my named.conf (which is working ok, of course).
  3. Cpanel - near to impossible to cut out something usable outside cpanel
  4. Webmin - seems to deal only with bind 8.x
  5. the /usr/sbin/named-checkconf utility packed with bind.9 - gives just an OK/not ok verdict upon named.conf, no way to store the underlying structure.
Is there some other way to have an (reasonable) easy ride with this?

Many thanks.
  • Comment on How to parse a bind9.x config file (named.conf?)

Replies are listed 'Best First'.
Re: How to parse a bind9.x config file (named.conf?)
by BazB (Priest) on Nov 04, 2006 at 00:41 UTC
    I know the maintainer of BIND::Config::Parser - he's a reasonable chap and is happy to receive bug reports and/or patches. I suggest you drop him an email.

    If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
    That way everyone learns.

Re: How to parse a bind9.x config file (named.conf?)
by cosimo (Hermit) on Nov 05, 2006 at 10:28 UTC