BIND 8.2.1: Lame servers
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Sat Jul 3 01:12:16 UTC 1999
The following patch should correctly set RD on the outgoing
messages to the forwarders. This will have only affected
people using forwarders in "forward first;" (default) mode.
The impact of not applying this patch, is if your forwarder(s)
has not already cached the answer to the query your server
will have to fall back to the nameservers for the zone.
For those sites using "forward only;", n is already zero so
this bug will have had no impact.
For those sites not using forwarders, there is potential to
set RD if you have filled up the q_addr array, otherwise it
is off as expected.
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
--
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