2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00
Commit Graph

207 Commits

Author SHA1 Message Date
Andreas Gustafsson
ce1f5b8d0a rewrote much of the statistics counter code 2000-12-01 23:49:59 +00:00
Andreas Gustafsson
d3be9a9c6e 583. [func] "rndc querylog" will now toggle logging of
queries, like "ndc querylog" in BIND 8.
2000-11-30 00:25:49 +00:00
Andreas Gustafsson
86a4d80e06 565. [func] Log queries more like BIND 8: query logging is now
done to category queries, level info. [RT #169]
2000-11-23 01:32:48 +00:00
Andreas Gustafsson
ab13b279ae revert the change of 1.151->1.152 - it is more important to log
queries sanely than to log them the same way BIND 8 did
2000-11-23 01:18:34 +00:00
Bob Halley
6b5a6fbe1c only set AD if they asked for DNSSEC 2000-11-20 17:53:35 +00:00
David Lawrence
7fd17f3f4d 565. [func] Log queries more like BIND 8. Query logging is done
to category "general", module "query", debug level 1.
			[RT #169]
2000-11-16 19:20:08 +00:00
Andreas Gustafsson
e9f6414d40 simplified query logging code by dropping support for EDNS1
multiple queries and by using dns_rdata{type,class}_format();
include the class in query log messages
2000-11-15 19:35:07 +00:00
Andreas Gustafsson
eb23b7b590 eliminated compiler warnings;
renamed setup_sortlist() to ns_sortlist_setup() to conform
to naming conventions
2000-11-15 18:12:38 +00:00
Andreas Gustafsson
50faa6daf7 refactored sortlist code to make it possible to sort addresses
that are not part of an rdata, as required by lwresd
2000-11-14 03:30:53 +00:00
Brian Wellington
78d78f05d9 556. [func] The DNSSEC OK bit in the EDNS extended flags
is now implemented.  Responses to queries without
                        this bit set will not contain any DNSSEC records.
2000-11-13 21:34:03 +00:00
Brian Wellington
0042d68e2f #include <string.h> 2000-11-13 20:10:19 +00:00
Andreas Gustafsson
1442a167f5 minor fixes to sortlist comments and spacing 2000-11-11 00:34:20 +00:00
Andreas Gustafsson
917c8406f6 handle negated sortlist entries correctly 2000-11-11 00:26:52 +00:00
Andreas Gustafsson
febaa09184 551. [func] Implemented the 'sortlist' option. 2000-11-10 03:16:26 +00:00
Michael Sawyer
31eef7e2d4 Use lowercase names for stats
statistic printing code cleanup
move some of the statistics stufdf to the server object
2000-11-09 19:55:20 +00:00
Michael Sawyer
a3a11c4f3f Add the ability (via rndc dump-statistics) to dump a file with counters of
various results given to queries.  Enable the (previously disabled)
statistics-file config option.
2000-11-07 23:49:42 +00:00
Mark Andrews
368b37b616 dns_rdata_invalidate -> dns_rdata_reset 2000-10-31 03:22:05 +00:00
Mark Andrews
c03bb27f06 532. [func] Implement DNS UPDATE pseudo records using
DNS_RDATA_UPDATE flag.

 531.   [func]          Rdata really should be initalized before being
                        assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
                        dns_rdata_clone(), dns_rdata_fromregion()),
                        check that it is.
2000-10-25 04:26:57 +00:00
Mark Andrews
5e589b5356 Uninitalised link fixes, batch 1. 2000-10-20 02:21:58 +00:00
Michael Sawyer
55aed608cc Add counters of incoming queries, server-wide and by zone. There is
currently no way to get these counts back *out* of the server, pending
a command channel.  A temporary channel should be built for these data
soon.
2000-10-17 20:57:26 +00:00
Michael Sawyer
94b50bce2b Add zone-specific reload and refresh capability to server and rndc 2000-10-12 21:52:00 +00:00
Michael Sawyer
f6b2acd608 Minor change to make GNS changes easier, as well as a minor typo. 2000-10-11 18:00:08 +00:00
Michael Sawyer
dc570b92f6 Add support for proposed ZONE and VIEW opt attributes. These are currently
hidden behind #ifdef's, since no OPT code number has yet to be assigned
by the IANA.  They are also not quite complete in all regards; VIEW
options are understood and ignored.  ZONE options are understood and
acted upon, though some of the error cases aren't quite right.

Remove doubled isc_mem_stats in dighost.c

Update todo list.

Change literal 255's to DNS_NAME_MAXWIRE in name.c
2000-10-11 17:44:18 +00:00
Brian Wellington
d1cbf71409 clean up suspicious looking and incorrect uses of dns_name_fromregion 2000-10-07 00:09:28 +00:00
Mark Andrews
88cef4408a 493. [func] Return non-cachable (ttl = 0) NXDOMAIN responses
for SOA queries.  This makes it easier to locate
                        the containing zone without polluting intermediate
                        caches.
2000-09-28 05:48:50 +00:00
Andreas Gustafsson
337ca18384 475. [bug] query_getzonedb() sometimes returned a non-null version
on failure.  This caused assertion failures when
                        generating query responses where names subject to
                        additional section processing pointed to a zone
                        to which access had been denied by means of the
                        allow-query option. [RT #336]
2000-09-19 22:30:39 +00:00
Andreas Gustafsson
3a1ad1b045 removed #if 0'ed-out code 2000-09-13 17:49:00 +00:00
Michael Graff
b95c1391fa log query denied at INFO level, rather than error 2000-09-12 19:27:10 +00:00
Michael Graff
42e31e6ef7 pass in the log level desired; make 'client denied recursion' log at debug level 1 always. 2000-09-12 18:50:36 +00:00
Andreas Gustafsson
1fc26319b5 423. [bug] When responding to a recusive query, errors that occur
after following a CNAME should cause the query to fail.
                        [RT #274]
2000-09-06 18:41:22 +00:00
Michael Graff
1865d559b0 Fix the database error, I think... Need to look at this better. 2000-08-26 23:22:36 +00:00
Brian Wellington
2c1a16dc25 Remove multiple question support, since edns1 is dead. 2000-08-21 23:45:41 +00:00
Andreas Gustafsson
e605e98f3e use DNS_NAME_MAXTEXT/DNS_NAME_FORMATSIZE 2000-08-09 00:09:36 +00:00
Andreas Gustafsson
ff56121a98 use isc_log_wouldlog() 2000-08-08 23:57:13 +00:00
Andreas Gustafsson
40b1b44ed6 377. [bug] WHen additional data lookups were refused due to
allow-query, the databases were still being
                        attached causing reference leaks.
2000-08-08 19:16:19 +00:00
Andreas Gustafsson
575db903aa 375. [bug] Per-zone allow-query did not properly override the
view/global one for CNAME targets and additional
                        data [RT #220].
2000-08-08 17:14:33 +00:00
Andreas Gustafsson
2ebe19d1a2 SOA in authoritative negative responses had wrong TTL (RT #212) 2000-08-08 00:46:00 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
Michael Graff
6d3496c045 Implement additional-from-{glue,auth} [ yes | no ] ;
with yes being the default.  These control searching in the cache and
other zones we are authorative for.  This is mostly for gdib, but
may be useful elsewhere.

The config changes are renaming from glue-from-* to additional-from-*,
since this also prevents DNAME, CNAME, NS, MX, etc. additional data
from being followed.
2000-07-31 21:07:07 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Brian Wellington
1702f1a0fe Add a 'fetchoptions' field to the query structure, which is currently 0
unless the query has the cd bit set.
2000-07-25 21:37:05 +00:00
Brian Wellington
5d9e3392b2 Add support for the cd (checking disabled) bit. Setting the cd bit in a
query still doesn't completely work, since the resolver needs to be modified
also.  Basically, if data is in the cache and trust == pending, it will now
be returned when the cd bit is set.
2000-07-25 01:06:18 +00:00
Brian Wellington
70c2802fd7 In query_addbestns, check that both the rdataset and sigrdataset are not
pending before adding them.
2000-07-18 22:24:45 +00:00
Andreas Gustafsson
04d58db327 321. [bug] When synthesizing a CNAME RR for a DNAME
response, query_addcname() failed to intitialize
                        the type and class of the CNAME dns_rdata_t,
                        causing random failures.
2000-07-10 18:33:25 +00:00
Brian Wellington
baeb4bcf32 In query_find(), if we're looking up a key and dns_db_find() returns
DNS_R_DELEGATION, don't use the domain & ns set found by dns_db_find().
This means that a recursive server will not immediately ask the child zone
for a key set at the apex; the resolver will determine who to ask.
2000-07-06 02:27:26 +00:00
Andreas Gustafsson
4defd73fca This is "the glue fix". It changes the additional data lookup
algorithm to more closely follow RFC1035, so that root servers will
provide a more complete set of name server glue addresses in ccTLD
referral responses.

For non-referral responses, the server no longer uses glue as
additional data.

For referral responses, the servers now looks for glue A/AAAA/A6 RRs
in the zone where the NS RRs reside, even in the case where this is
different from the zone where the A/AAAA/A6 RRs would have resided had
they been authoritative data.

A6 chains included as additional info may not yet fully follow these
rules.
2000-07-05 23:10:06 +00:00
Andreas Gustafsson
a074e41b97 style and new comments; no functional change 2000-07-04 01:33:47 +00:00
Michael Graff
4ecbc9c96f Don't use TCP for outgoing queries just because the client is TCP. 2000-06-26 21:42:33 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
Mark Andrews
0bfcec250f 254. [bug] suppress "query denied" messages on additional data
lookups.
 ISC-Bugs #139
2000-06-15 04:42:01 +00:00