chiark / gitweb /
Warn if user specifies a zone with the trailing `.'.
[chiark-utils.git] / scripts / named-conf
index 0108a740780dbee5b677bbd6481dbeea44dc787b..120f2b7a78f0fd1bbce7aea63bc3485c50384a88 100755 (executable)
@@ -425,6 +425,11 @@ sub process_zones (@) {
     local ($zone,$cfg);
 
     foreach $zone (@zones) {
     local ($zone,$cfg);
 
     foreach $zone (@zones) {
+       if ($zone =~ m/\.$/) {
+           zone_warning("zone specified with trailing dot -".
+                        " will not work", '');
+       }
+
        $cfg= $zone_cfg{$zone};
        if (!$cfg) {
            $cfg= {
        $cfg= $zone_cfg{$zone};
        if (!$cfg) {
            $cfg= {