2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

66 Commits

Author SHA1 Message Date
Andreas Gustafsson
7cd4c3ddd1 The 'cache-ttl' and 'ncache-ttl' options now work 2000-05-26 23:17:56 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
Andreas Gustafsson
cd01c9716f Reintroduced separate internal/external reference counts for zones,
reversing part of the changes made on 2000/05/17.  Doing an explicit
zone shutdown on destruction of the zone table caused the zone to
be shut down prematurely on server reload when the zone table was
destroyed but the zone had already been attached to a new zone table.
An external reference count is needed to correctly handle this situation.
2000-05-22 17:23:15 +00:00
Michael Graff
46993e1d9d Merge the mlg-20000518 branch onto the mainline. Change summary:
dns_dispatch_create() no longer exists.  dns_dispatch_createtcp()
	and dns_dispatch_getudp() are the replacements.  _createtcp() takes
	a bound, connected TCP socket, while _getudp() will search for
	a sharable UDP socket, and if found, attach to it and return a
	pointer to it.  If one is not found, it will create a udp socket,
	bind it to a supplied local address, and create a new dispatcher
	around it.

	dns_dispatch_remove{request,response}() no longer take the dispatch
	as an argument.

	query-source can now be set per view.

	The dispatch manager holds onto three memory pools, one for
	allocating dispatchers from, one for events, and one for
	requests/replies.  The free list on these pools is hard-coded,
	but set to 1024.  This keeps us from having to dig into the
	isc_mem_t the pools draw from as often.

	dns_resolver_create() and dns_view_createresolver() require that
	valid dispatchers be passed in; dispatchers are no longer created
	for the caller.
2000-05-19 21:46:46 +00:00
Andreas Gustafsson
ea96c33a39 call dns_zone_setview() once and for all when creating a zone;
do not call it again when reconfiguring
2000-05-19 02:34:23 +00:00
Andreas Gustafsson
22608315e8 Fixed multiple shutdown cleanup bugs in the zone object. This
involved extensive restructuring of the reference counting of
zones and related objects.

Zones now attach to their views.  To avoid a circular dependency that
would keep views from ever shutting down, this is done using the new
functions dns_view_weakattach() / dns_view_weakdetach() which
guarantee that the view will not be freed but still allow it
to be shut down.

The zones themselves now only have a single reference count, with
similar "weak" semantics.  Managed zones must now be shut down
explicitly by calling dns_zone_shutdown().  To shut down all
zones in a zone table, call dns_zt_shutdown().

The zone manager is now reference counted, weakly. To shut down the
zone manager, you must explicitly call dns_zonemgr_shutdown().
2000-05-17 19:45:36 +00:00
David Lawrence
65ec49af96 "view.c", line 541: remark(1552): variable "version" was set but never used
Removed "version" from function.
2000-05-14 02:34:27 +00:00
Mark Andrews
8adf1b9e74 Checkpoint ratelimiting refresh queries and notifies.
170.   [cleanup]       Remove inter server consistancy checks from zone,
                        these should return as a seperate module in 9.1.
                        dns_zone_checkservers(), dns_zone_checkparents(),
                        dns_zone_checkchildren(), dns_zone_checkglue().

                        Remove dns_zone_setadb(), dns_zone_setresolver(),
                        dns_zone_setrequestmgr() these should now be found
                        via the view.
2000-05-11 10:04:59 +00:00
Michael Graff
ca9739800f implement dns_dispatchmgr_t, replacing dns_dispatchlist_t. Use it throughout the library/server. 2000-05-10 21:34:50 +00:00
David Lawrence
6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +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
Bob Halley
e2fe0815b3 conform to zt API change 2000-04-19 18:27:42 +00:00
Mark Andrews
9e53cbca72 Add UDP refresh queries.
Generate NOTIFY messages.
2000-04-18 11:43:46 +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
738b9aa3de isc_task_create() API change 2000-04-12 01:41:21 +00:00
Andreas Gustafsson
edcb93b49c wired up view options: request-ixfr, provide-ixfr 2000-04-07 22:30:43 +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
5135844210 added 'matchclients' field 2000-04-06 00:19:44 +00:00
Bob Halley
7457bbd82f secroots is now a keytable; add trustedkeys keytable 2000-03-17 00:00:18 +00:00
Andreas Gustafsson
6e70b15670 zones now know which view they are in 2000-02-24 21:40:54 +00:00
Andreas Gustafsson
03ccfda9ec the view now has a peer list 2000-02-24 21:12:16 +00:00
Bob Halley
0485fcadd3 dns_view_simplefind() no longer binds the rdatasets if the result is NXDOMAIN. 2000-02-12 02:19:20 +00:00
Andreas Gustafsson
9e565c950b clean up security roots if TSIG key ring creation fails 2000-02-08 18:08:58 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Andreas Gustafsson
6d39d25c55 set configuration lock quotas to 1 2000-01-27 21:20:32 +00:00
Bob Halley
f91c2ae744 basic priming support 2000-01-27 02:55:47 +00:00
Bob Halley
92f0280bfb return NOTFOUND if a hints lookup fails 2000-01-27 01:08:09 +00:00
Andreas Gustafsson
143c2d39fa configuration locking checkpoint 2000-01-27 01:00:16 +00:00
Bob Halley
0df20c101e add v6 dispatcher and options to resolver creation routine 2000-01-26 16:57:48 +00:00
Bob Halley
e485d16462 name tasks 2000-01-25 19:31:23 +00:00
Andreas Gustafsson
f93d33e24f separated BIND specific configuration code from rest
of TSIG/TKEY code; renamed TSIG/TKEY context create and destroy functions for
consistency with rest of library
2000-01-24 19:14:26 +00:00
Andreas Gustafsson
036df8a12d exit server if loading a zone fails during initial startup
(but not if it fails during a subsequent reload)
2000-01-22 01:36:34 +00:00
Andreas Gustafsson
c8d4fd8926 support setting the TSIG keys more than once 2000-01-21 22:36:59 +00:00
Andreas Gustafsson
72f8abc08b destroy() did not free TSIG keys; result from dns_tsig_init()
was not checked
2000-01-21 22:15:43 +00:00
Andreas Gustafsson
a523752c60 do DNS_MESSAGE_VALID check in dns_tsig_verify() instead of
dns_view_checksig(); that way view.c does not need to include <dns/message.h>
2000-01-21 21:50:45 +00:00
Brian Wellington
b984520acc major TSIG/TKEY cleanup 2000-01-21 20:18:41 +00:00
Andreas Gustafsson
290074dd41 need #include <dns/zone.h> 2000-01-20 01:07:16 +00:00
Andreas Gustafsson
070d058606 #include <dns/zt.h> in view.c, not view.h 2000-01-20 00:46:45 +00:00
Bob Halley
2429ed58a2 INSIST that views with resolvers also have caches when they are frozen 2000-01-18 02:49:51 +00:00
Bob Halley
8f5df5f1fe What used to be dns_view_find() is now dns_view_simplefind().
There's now a new dns_view_find() that will return DNS_R_CNAME and DNS_R_DNAME.
Also, both find routines now also return DNS_R_NXDOMAIN and DNS_R_NXRRSET
so that callers can tell whether or not a fetch might be useful.
2000-01-15 00:47:45 +00:00
Bob Halley
1666db1334 freeze the resolver 2000-01-12 02:58:40 +00:00
Michael Graff
440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Andreas Gustafsson
fd15c8e32e Views now have a 'cache' field. The 'cachedb' field still
exists as a convenience shortcut / backwards compatibility thing.
1999-12-02 22:38:34 +00:00
Bob Halley
205790a755 coordinated shutdown of resolver and adb 1999-11-22 19:53:51 +00:00
Bob Halley
307fed93c4 allow negative cache entries to be returned 1999-11-03 19:58:00 +00:00