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
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
3755da41db reformatting; no functional change 2000-06-02 00:20:46 +00:00
Andreas Gustafsson
c7298a2f0e dns_name_totext() now always prints the root name as '.',
even when omit_final_dot is true
2000-06-02 00:19:37 +00:00
Andreas Gustafsson
658dc22047 no need to check for a port number of zero in master addresses as
the configuration code now guarantees that the port numbers have been
set in the masters list
2000-06-01 23:17:46 +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
David Lawrence
6d12fdf966 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.

The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.

rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.

Some minor integer-compatibility issues.  (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast.  The type of an
enum member is int, so there are some conversion issues there, too.)

A pointers-to-function should not be cast to a pointer-to-object.

Variables should not be named for C reserved identifiers.

One or two set-but-not-used variables removed.

Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
Michael Graff
d98c74e2ec set the default destination port in the view, and use it when returning addresses from the adb. 2000-06-01 00:30:58 +00:00
Andreas Gustafsson
5416faa397 Fixed RT #127. After the changes of zone.c 1.120, the variable
'soa' was no longer used, but it was still freed (sometimes)
2000-05-31 21:13:57 +00:00
Brian Wellington
090601a51c include dns/rdatastruct.h 2000-05-30 22:30:13 +00:00
Mark Andrews
48841a4ae9 When checking for notifies in the queue first check to see if a request has
been sent.

Check DNS_ZONE_F_NEEDREFRESH when we have got to the last master in
refresh_callback.
2000-05-29 05:47:18 +00:00
Andreas Gustafsson
396dba6250 added /*FALLTHROUGH*/ comments where appropriate 2000-05-26 18:18:12 +00:00
Andreas Gustafsson
c6cdf39bb2 Removed the function dns_zone_validate(). It was unused,
undocumented, marked XXX, and buggy (it contained a switch
statement that compared an rdclass to a set of zone types).
2000-05-25 21:13:39 +00:00
Andreas Gustafsson
e6aae9483e removed code for hint, forward, and cache "zones" as those
no longer have zone objects associated with them
2000-05-25 21:07:43 +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
19d1b1667d notify and zone soa queries are now tsig signed when appropriate. 2000-05-24 17:30:41 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +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
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
Andreas Gustafsson
be8d4578da zone_xferdone() assigned the updated zone expiry time to the wrong variable
zone->expire instead of zone->expiretime.  This left zone->expiretime
with a value of zero, causing zone_settimer() to get horribly confused
and set the timer to the inactive state (!).  This in turn caused
notify-driven refreshes (and probably other timer-scheduled events, too)
to never happen.
2000-05-20 21:24:41 +00:00
Michael Graff
19591ace46 reload zone housekeeping information on AXFR/IXFR 2000-05-20 01:32:46 +00:00
Mark Andrews
a2fad0f37c Convert to use dns_rdata_tostruct(,,mctx = NULL) where appropriate.
Set initial expire based on file mode time.  We can expire when not
running.
2000-05-19 02:18:40 +00:00
Mark Andrews
1aae402fc3 187. [func] isc_ratelimter_enqueue() has an additional arguement
'task'.

 checkpoint zone maintence / notify work.
2000-05-18 04:43:00 +00:00
Mark Andrews
59abb512d3 186 [func] dns_request_getresponse() has an additional arguement
'preserve_order'.
2000-05-18 02:59:20 +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
Andreas Gustafsson
8d6794a163 removed #ifdef'ed-out function dns_zone_manage() 2000-05-14 23:23:37 +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
Andreas Gustafsson
f7d85bae58 Keep a queue of zones waiting for zone transfer quota so that a new
transfer can be dispatched immediately whenever quota becomes available
2000-05-14 20:01:34 +00:00
Mark Andrews
902acbaefc notify checkpoint 2000-05-12 10:21:06 +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
65c21f5f73 get rid of a newline in a log message and minor formatting issue (line > 80 chars) 2000-05-11 02:06:18 +00:00
Michael Graff
4cfd0c3960 make magic numbers be the first things in the structures 2000-05-11 00:03:58 +00:00
Mark Andrews
f4f3f2cf34 167. [bug] Make lack of masters for a slave zone a soft error. 2000-05-10 21:51:17 +00:00
Mark Andrews
25d161ae43 Log failures to dump the zone file.
Clear DNS_FLAG_Z_NEEDDUMP after successfully dumping the zone.
2000-05-10 04:47:03 +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
Mark Andrews
598b67856b dns_zone_{set,get}masterport() is gone. 2000-04-28 17:18:23 +00:00
Mark Andrews
6c7e680943 115. [cleanup] libdns.a changes:
dns_zone_clearnotify() and dns_zone_addnotify()
                        are replaced by dns_zone_setnotifyalso().
                        dns_zone_clearmasters() and dns_zone_addmaster()
                        are replaced by dns_zone_setmasters().
2000-04-28 00:58:42 +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
Andreas Gustafsson
8db70f36be isc_buffer_putstr() will soon return void 2000-04-26 18:24:15 +00:00
David Lawrence
26037ecb22 Unlock zone->lock when skipping zone load because of database file's age.
Log at ISC_LOG_DEBUG(1) when dns_zone_load is entered, when it skips
loading because the file is older than the last load time, and when it
has successfully loaded the zone.
2000-04-24 23:30:46 +00:00
David Lawrence
1e44dac496 Use renamed functions, isc_mktemplate -> isc_file_mktemplate and
isc_ufile -> isc_file_ufile.

Don't load a zone if the database file for it is older than the last
time the zone was loaded.

Style lint.
2000-04-24 21:59:08 +00:00
Mark Andrews
821c5a2700 Cleanup *before* calling dns_zone_transfer_in(). 2000-04-19 22:21:22 +00:00
Mark Andrews
158ade3c6f Don't notify the master server. 2000-04-19 05:17:12 +00:00
Mark Andrews
8400fbd5c6 Fix locking problem w/ notify.
'next' was sometimes overwritten when it should not have been
causing NEEDNOTIFY to be effectivly ignored.
2000-04-19 02:07:03 +00:00
Andreas Gustafsson
e0a43acbb7 disable notify code until locking bug is fixed 2000-04-18 20:30:47 +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
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Bob Halley
0218c433f6 dns_zone_notifyreceive() failed to unlock the zone lock in certain
error cases.
2000-04-04 19:21:23 +00:00
Mark Andrews
7201d2e11b Unconditionally set the zone timer in xfrdone. 2000-03-21 00:17:15 +00:00
Andreas Gustafsson
4bc5101166 wired up the new 'request-ixfr' option 2000-03-20 19:42:21 +00:00
Andreas Gustafsson
2539896175 do not indent CVS ID comment 2000-03-17 17:49:37 +00:00
Brian Wellington
6fcfd0c35d ssutables are now attached/detached; zones get ssutables from config structs 2000-03-06 19:06:07 +00:00
Andreas Gustafsson
cfab2f4e03 implemented the 'transfers-in' option 2000-02-25 17:34:05 +00:00
Andreas Gustafsson
e01ecff4b1 Implemented the 'transfers' clause of the 'server' statement
> and the 'transfers-per-ns' option.
2000-02-25 00:52:11 +00:00
Andreas Gustafsson
6e70b15670 zones now know which view they are in 2000-02-24 21:40:54 +00:00
Brian Wellington
9fae7ff638 dns_zone_getssutable/dns_zone_setssutable 2000-02-16 16:37:55 +00:00
James Brister
269d5ca1c7 Example usage of ondestroy notification for databases. Is ifdef'd out. 2000-02-10 16:13:12 +00:00
Andreas Gustafsson
da0ecdd70c zone shutdown rewritten to use separate internal/
external refcount and control event instead of onshutdown,
to fix bug where zone could be freed before being shut down
(RT #28)
2000-02-10 01:12:15 +00:00
Andreas Gustafsson
4d5520682b support IPv6 masters in zone transfers 2000-02-09 19:04:04 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Andreas Gustafsson
87fe131e60 include <isc/mktemplate.h> and <isc/ufile.h> 2000-01-31 18:05:13 +00:00
Andreas Gustafsson
c718c8aa60 separate transfer-source addresses for IPv4 and IPv6 2000-01-31 18:00:07 +00:00
Mark Andrews
d718d8e129 Use a tmp file to dump the zone to so that we don't destroy the current
version unless we have successfully written to disk.
2000-01-31 07:45:18 +00:00
Mark Andrews
9ec46fafd6 Missed include file 2000-01-31 02:37:58 +00:00
Mark Andrews
89ab345002 dns_zone_dump() -> dns_zone_dumptostream()
replace seperate iteration of zone in dns_zone_dumptostream() with call
to dns_master_dumptostream().
dns_zone_dume() now dumps to database specified in zone.
2000-01-31 02:11:50 +00:00
Andreas Gustafsson
897ba5e120 Abort incoming zone transfers on server shutdown. To support
this, zone transfers now use the zone's task, the zone holds a pointer
to any zone transfer in progress, and the zone now registers a shutdown
callback.
2000-01-28 23:48:58 +00:00
Brian Wellington
3b2e285a16 dns_zone_dump() was returning DNS_R_NOMORE when the dump succeeded - should
check for this and return DNS_R_SUCCESS.
2000-01-28 16:10:47 +00:00
Andreas Gustafsson
6d39d25c55 set configuration lock quotas to 1 2000-01-27 21:20:32 +00:00
Andreas Gustafsson
94a3e829e0 added "transfersin" quota variable in zone manager;
use dns_severity_t, not dns_c_severity_t to represent name checking
severities, to eliminate the final dependency on dns/config code
2000-01-27 19:44:49 +00:00
Andreas Gustafsson
6f5ad8833c don't treat missing slave zone file as error when starting up 2000-01-27 01:35:17 +00:00
Andreas Gustafsson
057cedf6b5 fix double free introduced by previous change 2000-01-27 01:07:17 +00:00
Andreas Gustafsson
143c2d39fa configuration locking checkpoint 2000-01-27 01:00:16 +00:00
Andreas Gustafsson
a820cd51ec removed 'pubkey' from the zone object; if we decide it is
actually needed, it should be restored but as a dns_pubkey_t,
not dns_c_pubkey_t.
2000-01-27 00:44:56 +00:00
Bob Halley
6bfaefc3fd change some logging from INFO to DEBUG 2000-01-26 21:12:04 +00:00
Bob Halley
e485d16462 name tasks 2000-01-25 19:31:23 +00:00
Andreas Gustafsson
9f27c51315 iresult -> result 2000-01-24 23:10:19 +00:00
Andreas Gustafsson
4380033dc4 dns_zone_manage() has been superseded by dns_zonemgr_managezone();
made dns_zone_manage() static so that it cannot be called by mistake
2000-01-21 19:52:03 +00:00
Andreas Gustafsson
395130717a dns_zone_setorigin() now takes a dns_name_t *, not a char * 2000-01-21 19:21:14 +00:00
Bob Halley
7fc55ea79f conform to resolver api changes 2000-01-21 02:48:28 +00:00
Andreas Gustafsson
35503b8753 needs #include <dns/log.h> 2000-01-20 01:13:42 +00:00
Andreas Gustafsson
ea80934b58 make sure zone manager is not destroyed until tasks have finished;
eliminated 'soaquery' struct
2000-01-19 22:01:57 +00:00
Bob Halley
c1b5b02f55 settimer logging tweaks 2000-01-06 23:33:20 +00:00
Mark Andrews
9fd735a3d9 xfrin_start_temporary_kludge() was called when the zone was already locked.
DNS_ZONE_F_REFRESH needs to be set when we call xfrin_start_temporary_kludge()
from xfrdone().
1999-12-31 00:20:47 +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
fba6d4604d do not log "zone serial has gone backwards" when the
serial remains unchanged on zone reload
1999-12-22 20:52:32 +00:00
Andreas Gustafsson
d6f5fc7911 handle null pubkeys and ACLs in dns_zone_compare() 1999-12-22 19:09:29 +00:00
Michael Graff
733b16eb0b priority rendering 1999-12-22 03:22:59 +00:00
Michael Graff
58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +00:00
Andreas Gustafsson
6017f424ee introducing dns_acl_t; other restructuring of server
configuration process aiming to reduce the degree of mutual dependency
between lib/dns/config and the rest of libdns
1999-12-16 23:11:07 +00:00
Michael Graff
440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Mark Andrews
f6a9dd2c61 complete slave side of notify 1999-12-16 01:23:17 +00:00
Michael Graff
607dc8013a make dispatcher hash sizes be primes, and provide an increment to help
resolve hash collisions
1999-12-15 17:14:52 +00:00
Mark Andrews
24b22ddce7 typo's 1999-12-13 07:56:26 +00:00
Mark Andrews
76a8dfb307 Add idle and max xfer timeouts. 1999-12-13 06:39:39 +00:00
Mark Andrews
8436cbc6a4 Connect zone transfers to refresh timers.
Various logging changes.
Add dns_zone_getclass().
Added locking to zonemgr.
1999-12-13 03:04:55 +00:00
Mark Andrews
29b1cf6c7a Check for DNS_R_NOJOURNAL when rolling back a journal.. 1999-12-11 14:05:22 +00:00
James Brister
1ce5dcf1c8 Change config API to not take a isc_log_t but use dns_lctx extern. 1999-12-06 12:40:39 +00:00
Andreas Gustafsson
e6428e3af6 Use documented default value for max-transfer-time-in 1999-12-01 18:31:09 +00:00
James Brister
0666859124 Relocated errant break statements. 1999-12-01 17:59:22 +00:00
James Brister
29bf8316a3 - Hold list of pubkeys instead of a single pubkey in zones.
- Change dns_zone_copy to use pubkey list.
- MAGIC-number related fixes and miscellaneous defensive programing issues.
1999-12-01 16:29:00 +00:00
James Brister
292031c9fc - Removed config *_delete functions on structures that use reference
counting and replaced with *_detach.
- Changed config *_attach functions to return the new attached value through
  the paramater list rather than as a return value.
- Changed config *_delete functions to no longer allow deletion of a null
  pointer
- Changed calls to the config *_delete functions to make sure no null
  pointers were passed in.
- Changed use of the config *_attach function to match new signature.
1999-11-17 21:52:32 +00:00
Andreas Gustafsson
67125500ac use the logging library, not printf 1999-10-30 01:53:37 +00:00
Andreas Gustafsson
ed2cefee11 previous change had syntax errors in ifdef'ed out code 1999-10-30 00:14:08 +00:00
Andreas Gustafsson
4ed0c326e6 isc_sockaddr_totext() now writes to an isc_buf_t, not
a dynamically allocated string
1999-10-29 23:46:27 +00:00
Mark Andrews
f9cafe0859 fix cancel_refresh decl 1999-10-29 08:37:50 +00:00
Mark Andrews
fe37278859 in6_addr.s6_addr is *always* an array. 1999-10-29 06:36:05 +00:00
Andreas Gustafsson
a474ba139d enabled incoming zone transfer code; there are no SOA
queries yet, so we just do an unconditional transfer attempt at server
startup time for each slave zone
1999-10-29 02:41:56 +00:00
Bob Halley
7992e1adea set result in zonemanager 1999-10-29 02:17:31 +00:00
Andreas Gustafsson
71a16ee135 checkpoint, introducing new type dns_zonemgr_t 1999-10-29 00:46:53 +00:00
Mark Andrews
936f1c128f add log context to dns_zone_copy()
fix various locking problems in zone.
1999-10-25 13:44:53 +00:00
Bob Halley
772a802cd0 suppress a printf 1999-10-22 19:32:11 +00:00
Andreas Gustafsson
cec82dbad9 attempt journal rollforward even if diff_on_reload is set;
it is needed for dynamic zones and ixfr'ed slave zones
1999-10-21 00:39:40 +00:00
Andreas Gustafsson
9733108152 print descriptive warning messages when bad zone detected;
dns_zone_load did not always return ISC_R_SUCCESS when it succeeded.
1999-10-15 19:47:31 +00:00
Bob Halley
157a75e25a Eliminate zone callback.
Export dns_zone_equal.
Do not try to set slave options (like transfer_source)
on a master zone.
Turn off some printing.
Add a warning about dns_zone_tostr().
1999-10-15 01:39:31 +00:00
Mark Andrews
df7899248f dns_zone_callback: viewname should be (const char *) 1999-10-14 06:10:35 +00:00
Mark Andrews
2d06b00514 dns_zone_getdb now return DNS_R_NOTLOADED 1999-10-14 03:12:50 +00:00
Mark Andrews
f182ffaba7 dns_getname_origin nor returns (dns_name_t *) again. 1999-10-14 00:47:01 +00:00
Mark Andrews
39073e9734 convert to use ISC_MAGIC_VALID, VALID_ZONE now DNS_ZONE_VALID.
zone->origin now dns_name_t not dns_fixedname_t.
zone->diff_on_reload added.
acls are now freed when zone is freed.
Additional locking performed.
dns_rdataset_disassociate is only called if we find a rdataset.
dns_db_load() now calls db_zone_replacedb().
dns_zone_callback() fleshed out.
dns_zone_equal() to check configuration details.
dns_zone_replacedb() added.
1999-10-13 23:32:02 +00:00
James Brister
f9b4801c8f Change signature to zone_callback and have the callback pretend to
have done something useful.
1999-10-13 17:53:15 +00:00
Bob Halley
3e70e0a2c0 hack to avoid resolver issues 1999-10-07 19:39:53 +00:00
Bob Halley
10ba7f6f56 lint 1999-10-05 19:50:53 +00:00
James Brister
f9dcff45e2 Changes to dns_c_zone_* function signatures. 1999-10-02 21:15:20 +00:00
David Lawrence
7aab9a099d use type in_port_t instead of unsigned int for ports,
fix calls to isc_sockaddr_fromin{,6} to pass sin{,6}_addr as 2nd arg
1999-10-02 02:58:31 +00:00
Andreas Gustafsson
71b4bbe284 added dns_zone_getorigin(), dns_zone_getdatabase(),
dns_zone_getixfrlog()
1999-09-24 05:57:54 +00:00
Bob Halley
ea95ea0674 missed a few things 1999-09-23 23:55:33 +00:00
Bob Halley
c583a85db0 disable code that uses the resolver 1999-09-23 23:17:21 +00:00
Andreas Gustafsson
89e7b5009b added dns_zone_gettype() and dns_zone_gettask() 1999-09-23 06:42:10 +00:00
Bob Halley
e9d51ec4ab zones do not have resolvers 1999-09-21 20:03:03 +00:00
James Brister
7c337a9ca9 IPv6 fixes.
Removed config specific address type and replced with isc_sockaddr_t
1999-09-17 14:22:06 +00:00
Michael Graff
2f072c2982 Update copyrights 1999-09-15 23:03:43 +00:00
Mark Andrews
cba05509f3 Add #include <isc/print.h>
dns_zone_log_error -> dns_zone_logerror
1999-09-14 03:07:07 +00:00
Mark Andrews
bada60fd2a Non portable type used. u_int32_t -> isc_uint32_t 1999-09-09 23:25:51 +00:00
Bob Halley
0b157747b3 findrdataset can now return a sig 1999-09-08 01:10:08 +00:00
James Brister
92db5cd726 Renamed many identifiers to match coding guidelines. 1999-09-03 20:59:50 +00:00
Mark Andrews
29ed825602 Changes for the introduction of 'covers' and dns_db_find returning
the sig RRset.
1999-09-03 13:21:30 +00:00
Mark Andrews
686b27bfd3 Initial zone code. Minimally functional. 1999-08-30 14:37:45 +00:00