Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to How to parse a bind9.x config file (named.conf?)

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-24 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found