Commit Graph
115 Commits
Author SHA1 Message Date
Andreas Gustafsson ebaaa74de1 pullup:
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-26 23:15:03 +00:00
Andreas Gustafsson e846e95e6f pullup:
In query_addbestns, check that both the rdataset and sigrdataset are not
pending before adding them.
2000-07-19 16:22:16 +00:00
Andreas Gustafsson 67d77ba5a1 pullup:
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-10 21:59:34 +00:00
Michael Graff dcad783378 pull up changes for Andreas 2000-07-10 19:39:04 +00:00
David Lawrence adad2b84ca [pullup bin/named/query.c revisions 1.111 and 1.112 for Andreas]
309.	[bug]		When sending a referral, the server did not look
			for name server addresses as glue in the zone
			holding the NS RRset in the case where this zone
			was not the same as the one where it looked for
			name server addresses as authoritative data.
2000-07-09 19:52:24 +00:00
Andreas Gustafsson ffea7b01c8 pullup: Don't use TCP for outgoing queries just because the client is TCP. 2000-06-26 22:38:56 +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
David Lawrence 0b056755b2 225. [cleanup] The enumerated dns_rdatatype_* identifiers are now
cast to dns_rdatatype_t via macros of their same name
                        so that they are of the proper integral type wherever
                        a dns_rdatatype_t is needed.

(And a few prototypes that I recently bogusly changed to take "int" parameters
in place of "dns_rdatatype_t" to accomodate the type of an enum identifier
have been reverted to again properly take a dns_rdatatype_t.)
2000-06-01 21:42:42 +00:00
David Lawrence 7efc8c3f69 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

Minor other ISC style cleanups.
2000-06-01 18:49:22 +00:00
David Lawrence ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence ffead635aa removed unused stack variable "set_ra" from ns_query_start.
wrapped long lines.
fixed comment to ISC style.
2000-05-24 03:23:42 +00:00
Andreas Gustafsson 949162ca40 in [84], after allowing access to a zone based on the view
allow-query ACL, subsequent accesses to the same zone were denied because
dbversion->queryok was not being set.  This caused mandatory glue to be
omitted from referral responses, ultimately causing lookups to fail if all
authoritative servers for the parent zone were running bind9.
2000-05-11 20:10:34 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence 09f22ac5b0 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
David Lawrence b77f76be2d Where the methods field of an rdataset was compared to NULL, now use
dns_rdataset_isassociated() instead.
2000-04-28 23:46:43 +00:00
Andreas Gustafsson 82ca33427b declare arguments as UNUSED() when used in assertions only 2000-04-28 01:24:18 +00:00
David Lawrence 6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Bob Halley 924e26ea2f Look for KEY RRs in both the delegator and delegatee if we're
authoritative for both, the delegatee is nonsecure, and the query
name is at the top of the delegatee zone.

Apply allow-query ACL checks to all response data.
2000-04-25 21:58:17 +00:00
Bob Halley e2fe0815b3 conform to zt API change 2000-04-19 18:27:42 +00:00
Michael Graff e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley 15a0ed3060 fix [RT 94] (name buffer already in use assertion) 2000-04-13 19:34:02 +00:00
Andreas Gustafsson ad2c5d060d use dns_name_format() when logging queries 2000-04-11 19:24:20 +00:00
Brian Wellington 8469ee3726 Don't include authority data if it would force us to unset the AD bit 2000-04-11 18:43:27 +00:00
Andreas Gustafsson a672bfbee4 wired up view options: allow-query, allow-recursion, allow-transfer 2000-04-06 23:59:19 +00:00
Michael Graff 4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Andreas Gustafsson 66e2dd5001 wired up view options: recursion, auth-nxdomain, transfer-format 2000-04-06 20:25:48 +00:00
Andreas Gustafsson 074a4e3494 provide more context in log messages 2000-04-04 19:14:05 +00:00
Bob Halley d72c8b8c6a Do not detach 'db' in the NOTFOUND case if it is NULL. This should not
happen, but is a possible result if the resolver returned NOTFOUND.
2000-03-17 00:07:02 +00:00
Andreas Gustafsson 3eef7eaba0 renamed dns_acl_checkrequest() to ns_client_checkacl()
and moved it to bin/named/client.c to reflect the fact that it
implemented BIND ACL policy more than general-purpose library
functionality; resolve ACL defaults at configuration time
rather than when the ACL is evaluated
2000-02-22 21:24:24 +00:00
Brian Wellington 52c6910afb Adding additional data caused an assertion for a signed zone. 2000-02-14 22:21:25 +00:00
Andreas Gustafsson ae0bc2f30e Make client reference counts work the same way as all
other reference counts: replace ns_client_wait() and
ns_client_unwait() by ns_client_attach() and ns_client_detach(),
respectively
2000-02-11 20:56:19 +00:00
Andreas Gustafsson e5f8f2659b yet another major reorganization of client shutdown
procedures, in preparation for client timeouts
2000-02-10 22:16:56 +00:00
Andreas Gustafsson a174757026 implemented the 'localhost' and 'localnets' ACLs 2000-02-09 22:59:40 +00:00
Bob Halley 7d98a1783f update copyrights 2000-02-03 22:29:57 +00:00
Bob Halley bfab626984 When answering a nonrecursive query, do not use the cache if we have a
referral from authoritative data.
2000-02-01 02:23:39 +00:00
Andreas Gustafsson 4ab89b50e5 need #include <dns/rdatatype.h> 2000-01-27 19:45:33 +00:00
Andreas Gustafsson 143c2d39fa configuration locking checkpoint 2000-01-27 01:00:16 +00:00
Andreas Gustafsson 9e694201cf eliminated global variable ns_g_tkeyctx 2000-01-25 19:05:46 +00:00
Brian Wellington bf08eb90e4 use the new TSIG/TKEY code 2000-01-21 20:24:49 +00:00
Bob Halley f87506d115 conform to resolver API change 2000-01-21 02:51:09 +00:00
Andreas Gustafsson 09df1930e9 client can now reserve multiple types of quota simultaneously;
client quota bug fixes
2000-01-15 00:36:47 +00:00
Andreas Gustafsson 559b10cc8f client quotas; added reference counting to ns_interface_t
and ns_interfacemgr_t so that they can safely hold quota information
2000-01-11 21:18:22 +00:00
Bob Halley 45068fd4dc fix problem with SRV recursive additional data 2000-01-07 02:42:45 +00:00
Andreas Gustafsson 2cb0da946e the client and query data structures were not cleaned up
correctly if the server got a SIGINT with a recursive query in progress
2000-01-06 01:09:27 +00:00
Mark Andrews 6b32dc65e4 A whole lot of logging currently disabled with noop MACRO. 1999-12-24 00:43:46 +00:00
Michael Graff 3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00
Andreas Gustafsson 143592a649 new client shutdown cleanup strategy 1999-12-22 16:59:05 +00:00
Michael Graff 2015bf18c9 remove ../../isc/util.h that Andreas put back in. 1999-12-16 23:37:27 +00:00
Michael Graff 58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +00:00