bin/zone-mk
changeset 94 54252e5987f2
parent 87 6d624831079f
child 103 0c9f37c94f0c
--- 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] <customer-id> <domain>...
+    zone-mk [-f|--force] <customer-id> <zone>...
 
 =head1 DESCRIPTION
 
-B<zone-mk> creates a new DNS zone file and the config snipped.
+B<zone-mk> creates a new DNS zone file and the config snipped. Nothing
+else (especially no DNSSEC, and no bind integration) is done.
 
 =head1 OPTIONS