in reply to Alternative to DNS::ZoneParse ?

I've tried Unix::Conf::Bind8 with success. Here's just a silly snippet I was fooling around with that prints the file name of a zone.

#!/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";

Data::Dumper will reveal the rest of the zone for you.

~~
naChoZ