put there a hint about allow-new-zones
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Mon, 19 Jan 2015 10:55:12 +0100
changeset 30 b642c116da13
parent 29 dcebfb4a011c
child 31 e127de596921
put there a hint about allow-new-zones
local.pm.ex-2
--- a/local.pm.ex-2	Mon Jan 19 10:53:16 2015 +0100
+++ b/local.pm.ex-2	Mon Jan 19 10:55:12 2015 +0100
@@ -1,6 +1,4 @@
 # Example
-# $Id$
-# $URL$
 
 # remove the next line if you know, what you're doing
 #die "Sure?  You should adapt this file to your needs!";
@@ -32,6 +30,9 @@
 
 __
 
+    # set 
+    #	allow-new-zones yes;
+    # in /etc/bind/named.conf.options
     system rndc => (
 	addzone => $zone,
 	$txt
@@ -42,7 +43,7 @@
 	return 0;
     }
 
-    warn "zone $zone added via rndc addzone\n";
+    $@ = "zone $zone added via rndc addzone\n";
     return 1;
 
 }