283 Commits
Author SHA1 Message Date
Mark Andrews de154f65f6 Ensure that ns_client_*() are only called from the client's task. 2000-12-28 01:29:09 +00:00
Mark Andrews 6cc5eac41b more unlocked calls to cancel_refresh(). 2000-12-22 05:55:20 +00:00
Mark Andrews bd5f2ac188 630. [bug] locking failure in zone code. [RT #582] 2000-12-22 02:43:42 +00:00
Andreas Gustafsson 91b4560baa zone timer was using the wrong task [RT #571] 2000-12-20 01:27:50 +00:00
David Lawrence 3d509f54ac 613. [bug] "rndc reload zone" now reloads primary zones.
It previously only updated slave and stub zones,
			if an SOA query indicated an out of date serial.
2000-12-13 07:18:44 +00:00
Mark Andrews fa67ca21f6 make dns_zone_load work w/o being managed.
add bin/check/Makefile to configure
2000-12-13 06:21:42 +00:00
David Lawrence 13a0f9518a oops, an ifdef should have been an ifndef 2000-12-13 01:42:23 +00:00
David Lawrence 10e6498d6d * Removed max-names (as well as DNS_R_ZONETOOLARGE, which was
never returned by any function and was presumably cruft
        related to max-names).
  * Made allow-notify part of the public source and documented it.
  * Made master server TSIG keys part of the public source and documented it.
  * Removed a define of DNS_OPT_NEWCODES supposedly used by GNS, with
        the approval of Mike.
  * Made DNS_ZONE_FORCELOAD flag, used by rndc reload, work in the
        public source.  After the NOMINUM_PUBLIC cleanup, I'll
        fix the rndc reload issues we've been discussing here at IETF.

I left in NOMIMUM_PUBLIC around the forward-notify stuff, with the
expectation that Michael will give the go-ahead next week to remove it.
2000-12-13 00:15:39 +00:00
Brian Wellington 78838d3e0c 8 space -> tab conversion 2000-12-11 19:24:30 +00:00
Mark Andrews fc03bf680e more locking 2000-12-11 19:21:15 +00:00
Mark Andrews 10f89d2f83 additional comments 2000-12-08 19:34:06 +00:00
Mark Andrews a31ede78c8 Added locking check + some additional locks. 2000-12-07 03:13:01 +00:00
David Lawrence 68076411d5 DNS_ZONE_FLAG() was used as a boolean macro, so make it really return
ISC_TRUE/ISC_FALSE
2000-12-06 01:45:59 +00:00
Brian Wellington a7f3d1e811 The exiting test in zone_settimer was reversed. Oops. 2000-12-05 20:02:34 +00:00
Brian Wellington 1fe2d5bb6e zone_settimer now logs an error if isc_timer_reset fails, instead of returning
a result which all callers ignored.
2000-12-05 00:47:42 +00:00
Brian Wellington 99b39b3bb4 zone_settimer should do nothing if the zone is exiting. Previously, some of
the callers checked this, but not all of them.
2000-12-05 00:36:44 +00:00
Andreas Gustafsson 2c826ed1cf don't flood logs with lots of notify-related log messages at
level info; minor changes to log messages
2000-12-04 23:58:27 +00:00
Andreas Gustafsson f1b2bd266e eliminate compiler warnings about unused variables in
sanitized code
2000-12-02 05:29:15 +00:00
Andreas Gustafsson ce1f5b8d0a rewrote much of the statistics counter code 2000-12-01 23:49:59 +00:00
Mark Andrews 372dfd542b de-couple dns_zone_notify() and dns_zone_maintenance() from their callers. 2000-12-01 03:20:00 +00:00
Mark Andrews e9fce1415f 582. [bug] dns_zone_idetach() failed to lock the zone.
[RT #199, #463]
2000-11-29 14:03:29 +00:00
Andreas Gustafsson 57aac9d2de removed /* XXX should use temporary file and rename */ comment -
dns_master_dump() now takes care of that
2000-11-28 20:54:37 +00:00
Andreas Gustafsson 8a711bcd39 clarified comment 2000-11-28 02:33:58 +00:00
Michael Sawyer 504b15de12 Use zone lock instead of zmgr lock on counters
Clean up global and local count adders.
2000-11-28 01:59:25 +00:00
Mark Andrews dfd7798d8b 578. [func] Notify-source, specify the source address for notify
messages.
2000-11-25 02:43:56 +00:00
Andreas Gustafsson 5404e14bbb eliminated compiler warnings 2000-11-22 23:06:55 +00:00
Andreas Gustafsson f8032c198b don't needlessly reload slave, stub, and dynamically updated
master zones on server reload [RT #482]
2000-11-22 19:56:18 +00:00
Andreas Gustafsson 73732bf151 don't blow away the journal file after a journal replay,
only after a database dump [RT #482]
2000-11-22 18:58:12 +00:00
Andreas Gustafsson 2bd70b6822 Allow master zones to not have a 'file' option, to support non-rbt
databases.  Zones with a nonpersistent database and no 'file' option will get
an error logged at load time.
2000-11-18 02:54:22 +00:00
Andreas Gustafsson 8bba70c48d renamed dns_zone_setdatabase() to dns_zone_setfile(),
and dns_zone_getdatabase() to dns_zone_getfile(), with the idea that
they (and the 'file' zone option) will always refer to the zone's
master file, regardless of the database implementation.  If a
non-rbt database uses a disk file for its internal storage, the
name of that file should be specified as an argument to the 'database'
option, not using the 'file' option.
2000-11-18 00:57:23 +00:00
Andreas Gustafsson ba6fd25808 567. [bug] Setting the zone transfer timeout to zero caused an
assertion failure. [RT #302]

 566.   [func]          New public function dns_timer_setidle().
2000-11-17 19:04:51 +00:00
Brian Wellington 4d56f59ad0 log a message if dns_db_create fails 2000-11-17 02:49:11 +00:00
Andreas Gustafsson 626b221f71 553. [bug] Incoming zone transfers deferred due to quota
were not started when quota was increased but
                        only when a transfer in progress finished. [RT #456]
2000-11-13 18:19:27 +00:00
Andreas Gustafsson c2f4fe7f95 clarified comment; fixed spacing 2000-11-11 01:02:28 +00:00
Andreas Gustafsson 673ce7aebb removed redundant declaration of dns_rdataclass_totext() from rdata.h;
it is declared in rdataclass.h
2000-11-09 19:33:51 +00:00
Brian Wellington 55b085353a error message improvements 2000-11-09 02:35:43 +00:00
Michael Sawyer a3a11c4f3f Add the ability (via rndc dump-statistics) to dump a file with counters of
various results given to queries.  Enable the (previously disabled)
statistics-file config option.
2000-11-07 23:49:42 +00:00
Mark Andrews 4ec1a96d90 542. [func] Add allow-update-forwarding support. 2000-11-06 08:11:11 +00:00
Mark Andrews 0fc89c4ee6 540. [func] Add dialup support. 2000-11-03 07:16:09 +00:00
Mark Andrews 533df4efda 537. [func] Use transfer-source{-v6} when notify messages. 2000-10-31 05:34:18 +00:00
Mark Andrews 368b37b616 dns_rdata_invalidate -> dns_rdata_reset 2000-10-31 03:22:05 +00:00
Mark Andrews 04c22ceaf2 536. [func] Use transfer-source{-v6} when sending refresh queries.
Transfer-source{-v6} now take a optional port
                        parameter for setting the UDP source port.  The port
                        parameter is ignored for TCP.
2000-10-31 01:17:19 +00:00
Mark Andrews 6ef15459b8 535. [func] Use xfrsource[46] when forwarding update requests. 2000-10-30 05:08:07 +00:00
Mark Andrews c03bb27f06 532. [func] Implement DNS UPDATE pseudo records using
DNS_RDATA_UPDATE flag.

 531.   [func]          Rdata really should be initalized before being
                        assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
                        dns_rdata_clone(), dns_rdata_fromregion()),
                        check that it is.
2000-10-25 04:26:57 +00:00
Mark Andrews 72fa265baa 529. [bug] 521 contained a bug which caused zones to always
reload.  [RT #410]
2000-10-23 00:31:28 +00:00
Mark Andrews cf573ce6fb More ISC_LINK_INIT fixes. 2000-10-20 13:29:37 +00:00
Michael Sawyer 55aed608cc Add counters of incoming queries, server-wide and by zone. There is
currently no way to get these counts back *out* of the server, pending
a command channel.  A temporary channel should be built for these data
soon.
2000-10-17 20:57:26 +00:00
Mark Andrews b20ee662a7 521. [bug] Detect master files which contain $INCLUDE and always
reload. [RT #196]

new result code DNS_R_SEENINCLUDE
dns_master_load* can now return DNS_R_SEENINCLUDE
2000-10-17 07:22:39 +00:00
Michael Sawyer 34d2bdadb4 Oops on the last commit. Editor wasn't saved when I did the commit, and
the cvs diff output was very close to the correct one, so I didn't
notice the problem.
2000-10-16 22:26:25 +00:00
Michael Sawyer ce82008f65 The change made in patch 233 was breaking preventing the server from
being built when sanitized.  Since there is no obvious reason for
notify->flags to be hidden behind sanitize ifdefs, move it public.
(Lots of places which referred to ->flags were not sanitized out.)
2000-10-16 21:14:29 +00:00