chiark / gitweb /
- do not warn about glueful nameservers in serverless-glueless
authorianmdlvl <ianmdlvl>
Fri, 21 Sep 2007 22:55:47 +0000 (22:55 +0000)
committerianmdlvl <ianmdlvl>
Fri, 21 Sep 2007 22:55:47 +0000 (22:55 +0000)
    areas (since these can't cause problems).  Thanks to Ben Harris
    for report and subsequent discussion.

debian/changelog
scripts/named-conf
scripts/named-conf.8

index b341378c0ec938c0eda3d81a308f76cc7250f148..b819a9208f908b55b335f934b21164b2dc7f6e6e 100644 (file)
@@ -6,6 +6,9 @@ chiark-utils (4.1.22) unstable; urgency=low
     - new forbid-slave directive
     - remove incorrect references to SOA ORIGIN - should be MNAME
     - allow config file to not exist.  Closes: #274528.
+    - do not warn about glueful nameservers in serverless-glueless
+      areas (since these can't cause problems).  Thanks to Ben Harris
+      for report and subsequent discussion.
   * chiark-backup Depends on chiark-utils-bin.  Closes: #401611.
 
  --
index c9ae98de6b08d2c52db8e3e0decf58ddffa1642d..fdfa404792adbfe7cb42767a6f598ffa2d87acf0 100755 (executable)
@@ -554,7 +554,7 @@ sub zone_investigate() {
 
 sub zone_check_nsrrset ($$$$) {
     my ($uaddr,$wa, $name_if_auth, $glueless_ok) = @_;
-    my (@s, $s, $a, %s2g, @glue, $glue, $delgs_or_auths, $wwn, $ww);
+    my (@s, $s, $a, %s2g, @glue, $glue, $delgs_or_auths, $wwn, $ww, $cg);
     my ($rcode);
     $ww= "[$uaddr] $wa";
     verbose("checking delegation by $ww");
@@ -589,6 +589,11 @@ sub zone_check_nsrrset ($$$$) {
                           @{ $cfg->{'indirect_glue'} }) and
                         !(grep { has_suffix_of($zone,".$_"); }
                           @{ $cfg->{'indirect_glue'} }));
+           foreach $cg (@{ $cfg->{'conv_glueless'} }) {
+               zone_warning("nameserver $s (glueless) in".
+                            " serverless-glueless namespace area $cg", $ww)
+                   if has_suffix_of(".$s",".$cg");
+           }
            ($rcode,@glue)= lookup($s,'a','0',"glueless NS from $ww");
            foreach $a (@glue) {
                $wwn= "glueless NS from $ww";
@@ -605,14 +610,7 @@ sub zone_check_nsrrset ($$$$) {
 
 sub zone_ns_name ($$) {
     my ($name,$ww) = @_;
-    my ($cg);
     $delg_to_us=1 if grep { $name eq $_ } @{ $cfg->{'self_ns'} };
-    foreach $cg (@{ $cfg->{'conv_glueless'} }) {
-       zone_warning("nameserver $name in serverless-glueless".
-                    " namespace area $cg",
-                    $ww)
-           if has_suffix_of(".$name",".$cg");
-    }
     zone_warning("published server, as $name, but configured as stealth",
                 $ww)
        if $cfg->{'s'} =~ m/u/ &&
index c72706e3ac629a7c637354e7b372bc46cc645875..57d5a9382928aae9243d8f64c166a4f4de8e95c2 100644 (file)
@@ -181,7 +181,8 @@ to-be-obsoleted slaves.  The default is no such addresses.
 .TP
 \fBserverless\-glueless\fP \fIdomain ...\fP
 Specifies a list of domains under which we do not expect to find any
-nameservers; for these zones it is OK to find glueless referrals.
+nameservers without glue; for these zones it is OK to find glueless
+referrals.
 Each domain listed names a complete subtree of the DNS, starting at
 the named point.  The default is
 .BR "in\-addr.arpa ip6.arpa ip6.int" .
@@ -190,8 +191,8 @@ To avoid indefinitely long or even circularly glueless referrals
 (which delay or prevent lookups) it is necessary for all sites to
 effectively implement similar conventions; currently the author
 believes that only the reverse lookup namespaces are conventionally
-devoid of nameservers, and therefore fine to provide glueless
-referrals for.  See GLUELESSNESS below.
+devoid of (glueless) nameservers, and therefore fine to provide
+glueless referrals for.  See GLUELESSNESS below.
 .TP
 \fBallow-\-indirect\-glue\fP \fInameserver-superdomain ...\fP
 Specifies a list of domains under which we expect to find glueless