diff -r c14527ff4d1f -r 54252e5987f2 bin/zone-mk --- a/bin/zone-mk Sun Jan 23 00:33:32 2011 +0100 +++ b/bin/zone-mk Sun Jan 23 22:22:57 2011 +0100 @@ -40,33 +40,33 @@ die "$cf{master_dir}: $!" if not -d -r -x $cf{master_dir}; die "$cf{zone_conf_dir}: $!" if not -d -r -x $cf{zone_conf_dir}; - # legt fuer jede domain in @ARGV ein verzeichnis in $master_dir an. + # legt fuer jede Zone in @ARGV ein verzeichnis in $master_dir an. # schreibt aus den angegebenen templates die dateien $zonefile und $config # in die entsprechenden verzeichnisse. - for my $utf8domain (@ARGV) { + for my $utf8zone (@ARGV) { - my $domain = idn_to_ascii($utf8domain, $CHARSET); - my $zonefile = "$cf{master_dir}/$domain/$domain"; - my $configfile = "$cf{zone_conf_dir}/$domain"; + my $zone = idn_to_ascii($utf8zone, $CHARSET); + my $zonefile = "$cf{master_dir}/$zone/$zone"; + my $configfile = "$cf{zone_conf_dir}/$zone"; my $now = time; make_path dirname $zonefile; if (-f $zonefile and not $opt_force) { - say "skipping $utf8domain: zone file '$zonefile' exists."; + say "skipping $utf8zone: zone file '$zonefile' exists."; next; } if (-f $configfile and not $opt_force) { - say "skipping $utf8domain: config file '$configfile' exists."; + say "skipping $utf8zone: config file '$configfile' exists."; next; } - say "domain $utf8domain ($domain) for $customer."; + say "zone $utf8zone ($zone) for $customer."; my %vars = ( - domain => $domain, - utf8domain => $utf8domain, + zone => $zone, + utf8zone => $utf8zone, now => $now, zonefile => abs_path($zonefile), customer => $customer, @@ -93,11 +93,12 @@ =head1 SYNOPSIS - zone-mk [-f|--force] ... + zone-mk [-f|--force] ... =head1 DESCRIPTION -B creates a new DNS zone file and the config snipped. +B creates a new DNS zone file and the config snipped. Nothing +else (especially no DNSSEC, and no bind integration) is done. =head1 OPTIONS