X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=scripts%2Fnamed-conf;h=120f2b7a78f0fd1bbce7aea63bc3485c50384a88;hp=fc55b24f4e599a53b4abe543ec794cd8dff6fde1;hb=704128164f85f7c3b7a1421a12f4cb11f2edcdec;hpb=99ee2270499e7028b6fb63db040f04cf002b630f diff --git a/scripts/named-conf b/scripts/named-conf index fc55b24..120f2b7 100755 --- a/scripts/named-conf +++ b/scripts/named-conf @@ -425,12 +425,20 @@ sub process_zones (@) { local ($zone,$cfg); foreach $zone (@zones) { - $cfg= $zone_cfg{$zone} || { - 'style_p' => 'foreign', - 's' => "f $group2modcmd{'foreign'}", - 'servers' => [ ], + if ($zone =~ m/\.$/) { + zone_warning("zone specified with trailing dot -". + " will not work", ''); + } + + $cfg= $zone_cfg{$zone}; + if (!$cfg) { + $cfg= { + 'style_p' => 'foreign', + 's' => "f $group2modcmd{'foreign'}", + 'servers' => [ ], }; - zone_conf_settings($cfg, $zone); + zone_conf_settings($cfg, $zone); + } mail_zone_before() or next if $domail;