Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: DNS::ZoneFile^H^H^H^HParse

by naChoZ (Curate)
on Jun 21, 2003 at 03:06 UTC ( #267756=note: print w/replies, xml ) Need Help??


in reply to Re: DNS::ZoneFile^H^H^H^HParse
in thread DNS::ZoneFile

I gave that one a quick spin. But the one that I actually got working pretty easily is Unix::Conf::Bind8.

For possible future super searchers, this is all it took:

#!/usr/bin/perl -w use strict; use Unix::Conf::Bind8; my $namedconf='/path_to/named.conf'; my ($obj, $conf); $conf = Unix::Conf::Bind8->new_conf ( FILE => $namedconf, SECURE_OPEN => 0 ) or $conf->die ('could not open \'named.conf\':' . $!); $obj = $conf->get_zone ('example.com') or $obj->die ("couldn't get zone `example.com'"); print "\n" . $obj->file . "\n";

~~
naChoZ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2023-12-07 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (33 votes). Check out past polls.

    Notices?