Bad referral

Mark_Andrews at isc.org Mark_Andrews at isc.org
Sat Oct 2 00:52:36 UTC 1999


	Apply the following patch.

	Mark

Index: src/bin/named/ns_forw.c
===================================================================
RCS file: /proj/cvs/isc/bind/src/bin/named/ns_forw.c,v
retrieving revision 8.61
diff -c -r8.61 ns_forw.c
*** ns_forw.c	1999/06/20 23:44:54	8.61
--- ns_forw.c	1999/07/03 00:56:49
***************
*** 205,211 ****
  	qp->q_msgsize = msglen;
  	memcpy(qp->q_msg, msg, qp->q_msglen = msglen);
  	hp = (HEADER *) qp->q_msg;
! 	hp->rd = (qp->q_addr[n].forwarder ? 1 : 0);
  	qp->q_addr[0].stime = tt;
  
  #ifdef SLAVE_FORWARD
--- 205,211 ----
  	qp->q_msgsize = msglen;
  	memcpy(qp->q_msg, msg, qp->q_msglen = msglen);
  	hp = (HEADER *) qp->q_msg;
! 	hp->rd = (qp->q_addr[0].forwarder ? 1 : 0);
  	qp->q_addr[0].stime = tt;
  
  #ifdef SLAVE_FORWARD
> > We're running Bind 8.2.1 and starting to see at least one or two
> > bad referral messages a day in our log files. Here's a sample:
> > Sep 29 15:19:57 ns1 named[32521]: bad referral (com !< msnbc.COM)
> > Sep 29 20:57:29 ns1 named[32521]: bad referral (dec.com !< bb.DEC.COM)
> > Sep 29 21:11:44 ns1 named[32521]: bad referral (net !< GTLD-SERVERS.net)
> > Is there some way to find out what causes these or figure out where they
> > are coming from?
> 
> >>The server for (.com|.dec.com|.net) said that the
> >>(msnbc.COM|bb.DEC.COM|GTLD-SERVERS.net) subdomain was delegated to
> >>some other server.  But when ns1 queried that other server for
> >>something in the subdomain, it said the name doesn't exist, and
> >>returned a referral NS record back to the (.com|.dec.com|.net) domain,
> >>i.e. it doesn't even think that the subdomain has been delegated.=20
> 
> >>So something is misconfigured.
> 
> >I think you'll need to turn on named tracing to find out what's going on;
> >something is very strange in your configuration.  I checked all the servers
> >that these domains are delegated to, and none of them are lame (except that
> >I didn't get any response from ns2.internic.net, one of the servers for
> >gtld-servers.net).
> 
> >Can you post your named.conf file?
> 
> Here's the named.conf file I'm using:
> # named.conf for master server 
> #
>         include "/var/named/db/access.conf";
> 
> options {
>         directory "/var/named/db";
>         allow-query {
>                 "digital-fwd";
>         } ;
>         allow-transfer {
>                 "digital-ns2" ;
>         };
>         notify yes;
>         check-names master warn;
>         check-names slave warn;
>         check-names response ignore;
>         statistics-file "/var/named/work/named.stats";
>         dump-file "/var/named/work/named_dump.db";
>         memstatistics-file "/var/named/work/named.memstats";
>         forwarders { 16.52.48.193 ; 16.33.16.124; };
> };
> 
> #
> # local zone 
> #
> zone "0.0.127.in-addr.arpa" {
>         type master;
>         file "/var/named/db/named.local";
> };
> zone "." in {
> type hint;
> file "/var/named/db/root.cache.db";
> };
> 
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org


More information about the bind-users mailing list