http://qs1969.pair.com?node_id=267643


in reply to DNS::ZoneFile

You could try DNS::ZoneParse:

#!/usr/bin/perl -w use strict; use DNS::ZoneParse; my $zone = DNS::ZoneParse->new("../named.master.conf/_dnsmaster"); print $zone->output();

Update: Missed the question -- This won't parse the named.conf file. Looks like BIND::Conf_Parser should do what you want

-- simonflk