Commit Graph
390 Commits
Author SHA1 Message Date
Andreas Gustafsson a7705f38e9 399. [bug] When reloading the server with a config file
containing a syntax error, it could catch an
                        assertion failure trying to perform zone
                        maintenance on, or sending notifies from,
                        tentatively created zones whose views were
                        never fully configured and lacked an address
                        database and request manager.
2000-08-18 22:51:36 +00:00
Brian Wellington f7fe55549d The error message 'has 0 SOA records' incorrectly failed to pluralize
record.
2000-08-18 02:34:29 +00:00
Andreas Gustafsson f6094e763b minor simplification 2000-08-17 16:15:02 +00:00
Mark Andrews 769dd27de8 add notify-any & notify-relay
added missing / corrected comment spelling of NOMINUM_PUBLIC
added REQUIRE(ISLOCKED(????)); to zone.c
2000-08-17 13:13:37 +00:00
Andreas Gustafsson e1368a7770 397. [func] Added utility functions dns_view_gettsig() and
dns_view_getpeertsig().
2000-08-17 00:18:12 +00:00
David Lawrence b41fa90be0 tabify 2000-08-16 02:41:08 +00:00
Mark Andrews c05eb51a1b 388. [cleanup] dns_zone_setdbtype now has const char **dbargv.
397.   [bug]           result was not being set in notify_send_toaddr().
                        RT#238
2000-08-16 02:16:49 +00:00
Andreas Gustafsson ff59f0e4fe removed dns_zt_print(), dns_zone_print(), dns_zone_tostr(),
PRINT_ZONE_REF; these were only used by the zone2_test program which
has now been removed
2000-08-13 23:51:55 +00:00
Andreas Gustafsson 562cc4924b when sending notifies is suppressed due to the zone being
unloaded, clear the NEEDNOTIFY flag so that we don't reschedule the
notify every second
2000-08-10 19:50:02 +00:00
Brian Wellington c758ad35e7 Check that the zone is still loaded in the notify event handler. 2000-08-10 19:34:49 +00:00
Andreas Gustafsson eea2865fec 385. [cleanup] Removed function dns_zone_equal(). 2000-08-10 18:35:46 +00:00
Brian Wellington 147b0c9ba7 The server would crash trying to unload an unloaded zone if the initial
AXFR had more than maxnames records.
2000-08-10 17:11:23 +00:00
Andreas Gustafsson 886b96ebfd 382. [func] The function dns_zone_setdbtype() now takes
an argc/argv style vector of words and sets
                        both the zone database type and its arguments,
                        making the functions dns_zone_adddbarg()
                        and dns_zone_cleardbargs() unnecessary.
2000-08-10 00:53:36 +00:00
Brian Wellington e1818a34f7 Handle DNS_R_ZONETOOLARGE by unloading the zone and deleting the on-disk
database and journal.
2000-08-09 00:17:20 +00:00
Andreas Gustafsson 7048bc2b71 wired up and implemented the max-names zone option (for GNI) 2000-08-08 23:14:29 +00:00
Michael Graff 3d9892109d print out (debug level 2) the number of nodes in the zone on axfr, ixfr, and load 2000-08-04 13:26:48 +00:00
Mark Andrews 512661edd7 370. [bug] The error message for roll forward failures was
overly terse.
2000-08-03 21:24:49 +00:00
Michael Graff cb9aa603ab wire up the {min,max}-{refresh,retry}-time stuff 2000-08-02 22:29:16 +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
Brian Wellington f91e126d21 Allow zones with no NS records to be loaded and/or transferred in. Log
an error if the zone is loaded, but continue anyway.
2000-07-28 20:13:47 +00:00
Andreas Gustafsson 7edcf7abdf added INSISTs and comments to notify code 2000-07-28 19:32:57 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Michael Sawyer 761a1c3761 Add sanitizer and hide per-master key code behind sanitizing #ifdefs 2000-07-26 18:47:43 +00:00
Michael Sawyer 8cfe1a4846 Typo correction in DNS_MAX/MIN_RETRY usage
Don't #define mins/maxes if they are already defined. (per MG)
2000-07-25 19:29:00 +00:00
Michael Graff ef653fbdb1 implement 'notify [ yes | no | explicit ]' 2000-07-24 22:59:44 +00:00
Michael Sawyer 2f0bfccf31 Remove dead REQUIRE 2000-07-22 00:40:39 +00:00
Michael Sawyer f592550498 Add comments and make a slight REQUIRE change 2000-07-22 00:27:40 +00:00
Michael Sawyer 0371079513 Wire up key option in masters line. 2000-07-21 23:13:59 +00:00
Brian Wellington c27767a7b9 tsig keys were not properly ref counted 2000-07-21 23:00:31 +00:00
Michael Sawyer b6e3718b20 Should really allocate memory before trying to use it. 2000-07-21 20:51:44 +00:00
Michael Sawyer 5813d091e9 Spacing changes
replace memset with slightly more portable NULL initialization
properly NULL masterkeynames when zone is created
2000-07-21 20:10:03 +00:00
Michael Sawyer 9b72c4648f Internal code for masters with key entries. Not wired into config yet. 2000-07-21 18:47:23 +00:00
Brian Wellington d6e6858bb9 If dns_request_getresponse() fails, log it. 2000-07-20 19:34:16 +00:00
Brian Wellington 2e1236ad1e Call isc_log_wouldlog() 2000-07-13 00:30:58 +00:00
Andreas Gustafsson 403cc93b27 typo in log message 2000-07-11 22:44:33 +00:00
Mark Andrews 3cf456d58e zone_get_from_db() now does as much as is possible. 2000-07-04 04:21:38 +00:00
Brian Wellington 9e37579870 Check that zone->view is not NULL before checking that zone->view->adb is not
NULL.  It appears that zone maintenance can occur when the zone is shutting
down and the view pointer is NULL.  We don't want to do zone maintenance in
this case.
2000-07-04 01:32:40 +00:00
Andreas Gustafsson d8560fb7ff [RT #155]
305. [bug]             When reloading the server with a config file
                        containing a syntax error, it could catch an
                        assertion failure trying to perform zone
                        maintenance on tentatively created zones whose
                        views were never fully configured and lacked
                        an address database.
2000-07-03 20:21:53 +00:00
Mark Andrews b03a619e1d set AA in notify messages 2000-06-23 17:26:38 +00:00
Mark Andrews a4bdc2328a 266. [bug] zone.c:save_nsrrset() node was not initalised. 2000-06-20 23:54:11 +00:00
Mark Andrews 5dc6a24e8b 262. [bug] 'master' was not initalised in zone.c:stub_callback(). 2000-06-20 19:03:13 +00:00
Mark Andrews 242dfd9cc6 261 [func] Add dns_zone_markdirty(). 2000-06-19 23:05:32 +00:00
Andreas Gustafsson aa79283a0d 257. [bug] The server detached the last zone manager reference
too early, while it could still be in use by queries.
                        This manifested itself as assertion failures during the
                        shutdown process for busy name servers (RT #133).

 256.   [func]          isc_ratelimiter_t now has attach/detach semantics, and
                        isc_ratelimiter_shutdown guarantees that the rate
                        limiter is detached from its task.

 255.   [func]          New function dns_zonemgr_attach().
2000-06-15 17:40:22 +00:00
Andreas Gustafsson 21eaa04858 added dns_zonemgr_attach(); also changed comments for other
attach() functions to consistently say that the new reference attaches to
the object, not vice versa
2000-06-15 16:11:50 +00:00
Mark Andrews 1e98bdb4a3 add missing REQUIRE()s 2000-06-15 02:45:47 +00:00
Mark Andrews 0791b485bf DNS_ZONE_F_???? -> DNS_ZONEFLG_????
DNS_ZONE_O_???? -> DNS_ZONEOPT_????
Add various missing REQUIRE's
Add / cleanup comments in zone.h
Remove dns_zone_unmount() never implemented.
2000-06-09 06:16:21 +00:00
Mark Andrews 80ee8ea28d Consolidation and cleanup of stub code. 2000-06-07 06:14:52 +00:00
Mark Andrews 2a3e99550d 240. [func] databases now come in three flavours: zone, cache
and stub.

 Add stubs zones support checkpoint.
 notify_t -> dns_notify_t
2000-06-07 02:40:42 +00:00
Andreas Gustafsson abf2e095fb config code now guarantees that port number is set in the
also-notify list
2000-06-05 21:54:28 +00:00
Mark Andrews ac3b769801 232. [bug] Allow slave zones to not have a file. 2000-06-05 03:44:17 +00:00