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
In reply to Re: DNS::ZoneFile^H^H^H^HParse
by simonflk
in thread DNS::ZoneFile
by naChoZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |