Obsolete
/
dnsmanagerv1
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dnsmanagerv1/t/zone_tmp.pl

21 lines
344 B
Perl
Executable File

#!/usr/bin/perl -w
use strict;
use warnings;
use v5.14;
use autodie;
use Modern::Perl;
use DNS::ZoneParse;
use lib '../';
use app::zone::rndc_interface;
use app::zone::edit;
my $nom = $ARGV[0];
my $zdir = "/srv/named/";
my $ed = app::zone::edit->new(zdir => $zdir, zname => $nom);
my $zonefile = $ed->new_tmp();
print $zonefile->output();