Commit Graph
1699 Commits
Author SHA1 Message Date
Andreas Gustafsson 11d0a4a55e wired up the sig-validity-interval option; renamed its
access functions in the config code to be consistent with the option name
2000-06-02 17:31:43 +00:00
Andreas Gustafsson a892ddd1bd changed the zone type of the version.bind. CH zone from 'none'
to 'master', as the semantics of zones of type 'none' are not well defined.
Allow zone->dbname to be NULL to support this usage.
2000-06-01 23:11:26 +00:00
Andreas Gustafsson b3352f568a removed outdated comment 2000-06-01 22:34:03 +00:00
Andreas Gustafsson 7d040ee1bd don't log the message 'now using logging configuration from
config file' when said configuration has been overridden with -g
2000-06-01 21:45:45 +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
Andreas Gustafsson 92a31c0f86 support view-specific and global 'also-notify' 2000-06-01 00:41:23 +00:00
Andreas Gustafsson eb3807ea54 support per-view security roots 2000-06-01 00:21:12 +00:00
Andreas Gustafsson e6ec99f169 commented 2000-05-31 23:35:09 +00:00
Brian Wellington 0f80bfec68 The message code now has functions to manipulate TSIG and SIG(0), and the
callers use these functions.  Also a lot of TSIG cleanup.
2000-05-30 23:14:57 +00:00
Brian Wellington 4bf54f182d include dns/fixedname.h 2000-05-30 23:12:47 +00:00
Andreas Gustafsson ae792d7f4c silence signed/unsigned warning on alpha 2000-05-30 19:39:22 +00:00
Andreas Gustafsson c8c884b79b made defaults for max-cache-ttl and max-ncache-ttl the same as in
BIND 8: 7 days and 3 hours, respectively
2000-05-27 00:20:39 +00:00
Brian Wellington 311918e5a6 Don't allow dynamic updates of SIG records, since it either leaves the
database in an inconsistent state or fails when it shouldn't.  This will be
supported at some point, but it's better to flat out refuse than fail badly.
2000-05-27 00:07:52 +00:00
Andreas Gustafsson 7cd4c3ddd1 The 'cache-ttl' and 'ncache-ttl' options now work 2000-05-26 23:17:56 +00:00
Andreas Gustafsson 76a191c420 failures at certain points in request processing could cause
the assertion INSIST(client->lockview == NULL) to be triggered
2000-05-26 22:43:36 +00:00
Brian Wellington 5f80c1428b Don't leak memory when reloading the zone if an update-policy clause was
present in the old zone.
2000-05-26 00:48:59 +00:00
Brian Wellington af60263664 Added dns_tsigkey_attach & _detach, to simplify reference counting.
Added dns_message_get/settsigkey to deuglify tsig key handling in message code.
2000-05-26 00:16:46 +00:00
Andreas Gustafsson 6d5b03be41 wired up per-view 'servers' statement 2000-05-25 22:19:34 +00:00
Andreas Gustafsson 8c7eaac6bb deal with the default view 2000-05-25 22:10:29 +00:00
Andreas Gustafsson c885fad9b8 Wired up the view-specific 'key' statement. 2000-05-25 22:06:51 +00:00
Andreas Gustafsson 507ee70afd partial support for per-view security roots, still waiting
for the config file parser to support them
2000-05-25 21:43:18 +00:00
Andreas Gustafsson 1adb2e87a2 Cleaned up dns_zone_configure():
- Eliminated massive code duplication

 - Eliminated code for configuring forward and hint "zones",
   as those no longer have zone objects.  Left stub zones in
   because those probably will have zone objects associated
   with them.

 - Fixed several bugs:
   + 'allow-transfer' was not obeyed for slave zones or stub zones
   + 'dialup' was not obeyed for stub zones
   + 'transfers-per-ns' was not obeyed for any zones
2000-05-25 19:27:48 +00:00
Andreas Gustafsson c90b021ea3 renamed dns_zone_setnotifyalso() to dns_zone_setalsonotify(),
to be consistent with the name of the config file option
2000-05-25 15:34:26 +00:00
Andreas Gustafsson f1248b6383 use isc_sockaddr_any(), isc_sockaddr_any6() 2000-05-25 05:13:19 +00:00
Brian Wellington a9bc95f22e dst now stores the key name as a dns_name_t, not a char *. 2000-05-24 23:13:32 +00:00
David Lawrence 553727079c one more macro (FAIL()) where ISC_R_SUCCESS needed to be tested against a
variable instead of a constant.
2000-05-24 21:41:14 +00:00
David Lawrence 94296c8d5b quiet HP/UX and Solaris compilers by testing "result" variable (as opposed to
"code" constant) against ISC_R_SUCCESS in FAILC() and FAILS() macros.
2000-05-24 18:25:35 +00:00
David Lawrence ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence cfefc47443 removed unused stack variable "zoneclass" from ns_update_start.
ISC style fixups.
2000-05-24 03:26:35 +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
David Lawrence f9aa0a668c removed unused stack variable "zoneclass" from ns_notify_state 2000-05-24 03:19:21 +00:00
Andreas Gustafsson 875ad7d99d when reloading the server, zone objects reused with a new
view object still referenced their old view
2000-05-23 04:38:22 +00:00
Brian Wellington ef9f3246f4 _version zone wasn't set to dns_rdataclass_ch 2000-05-23 01:21:32 +00:00
Brian Wellington 9c2a9c5306 the server could crash if the version string was unassigned. 2000-05-23 00:40:59 +00:00
Andreas Gustafsson cb726f24e7 renamed variable tzone to dupzone for clarity and simplified
code to clean it up after use - no functional change
2000-05-22 17:07:43 +00:00
Andreas Gustafsson 1c628a47a5 failure in sending response to client was not logged 2000-05-22 16:03:31 +00:00
Andreas Gustafsson 224553741e send notifies after dynamic update 2000-05-22 16:01:58 +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
Brian Wellington c50936eb40 changed dst_key_free() prototype, misc. dst cleanup 2000-05-19 00:20:59 +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 34b394b43e DNS_R_RANGE -> ISC_R_RANGE 2000-05-15 21:14:38 +00:00
Andreas Gustafsson bbf6673828 use isc_sockaddr_format() instead of a static function doing
the same thing
2000-05-14 20:52:35 +00:00
David Lawrence de8661e517 grp.h is required for initgroups() prototype on IRIX. 2000-05-14 13:52:53 +00:00
David Lawrence 175b76e191 line 324: remark(1498): no prototype for the call to create_managers
line 383: remark(1498): no prototype for the call to setup
line 405: remark(1498): no prototype for the call to cleanup
The missing prototypes were added.
2000-05-14 13:47:17 +00:00
David Lawrence b5d263a378 line 1369: warning(1185): enumerated type mixed with another type:
ISC_TF() added to the return value of an isc_boolean_t function.
2000-05-14 04:02:10 +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 80150fb04a oh good lord. the casting problem is really truly fixed this time. mea culpa. 2000-05-11 15:36:20 +00:00
David Lawrence 24fe57b6da sorry, screwed up the cast in the last revision. cast a pointer to an int,
when i wanted to cast the int to unsigned then make a pointer.
2000-05-11 15:25:05 +00:00