chiark / gitweb /
.*
authorianmdlvl <ianmdlvl>
Sun, 26 May 2002 18:39:51 +0000 (18:39 +0000)
committerianmdlvl <ianmdlvl>
Sun, 26 May 2002 18:39:51 +0000 (18:39 +0000)
scripts/named-conf

index d2f6b35..bc355be 100755 (executable)
@@ -1,5 +1,3 @@
-fixme implement .* on self-soa self-ns
-
 #!/usr/bin/perl -w
 
 use strict;
@@ -311,6 +309,9 @@ sub zone_conf ($$$$$@) {
            if $sfx =~ m/^self/;
        $zone_cfg{$zone}{$sfx}= $aref;
     }
+    foreach $sfx (qw(self_soa self_ns)) {
+       $zone_cfg{$zone}{$sfx} =~ s/\*$/$zone/;
+    }
     $zone_cfg{$zone}{'output'}= $output;
     push @zone_cfg_list, $zone;
 }