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

471 Commits

Author SHA1 Message Date
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
Mark Andrews
d39e56173d Old BINDs will return FORMERR if the SOA is included in the NOTIFY.
Detect this and resend w/o SOA.
2000-10-16 04:05:43 +00:00
Mark Andrews
10258f6b3d 515. [bug] The ssu table was not beinge attached / detached
by dns_zone_[sg]etssutable.  [RT#397]
2000-10-13 13:45:45 +00:00
Mark Andrews
b38ebe307c 514. [func] Retry refresh and notify queries if they timeout.
[RT #388]
2000-10-13 13:23:09 +00:00
Michael Sawyer
94b50bce2b Add zone-specific reload and refresh capability to server and rndc 2000-10-12 21:52:00 +00:00
Brian Wellington
e9871cc765 __func__ doesn't seem to exist. 2000-10-10 22:00:12 +00:00
Brian Wellington
6850cdd449 508. [func] dns_message_parse() can now do a best-effort
attempt, which should allow dig to print more invalid
                        messages.
2000-10-06 18:58:30 +00:00
Mark Andrews
2a37aa188c 507. [func] New functions dns_zone_flush(), dns_zt_flushanddetach()
and dns_view_flushanddetach().

 503 was incomplete.
2000-10-05 06:39:26 +00:00
Mark Andrews
75545fc8c4 If loading a slave/stub zone fails. Save the master file and journal and
initiate a zone transfer.
2000-10-03 05:47:45 +00:00
Mark Andrews
df1e829dde 504. [bug] The zone was not being marked as dirty when updated via
IXFR.

 503.   [bug]           dumptime was not being set along with
                        DNS_ZONEFLG_NEEDDUMP.
2000-10-02 23:55:44 +00:00
Andreas Gustafsson
9a3c31507c removed INSIST(zone->dumptime != 0) until we figure out
what the meaning of zone->dumptime is supposed to be
2000-09-28 18:03:18 +00:00
Mark Andrews
fce9a9550e 492. [bug] attempting to reload a zone caused the server fail
to shutdown cleanly. [RT #360]
2000-09-27 13:05:04 +00:00
Andreas Gustafsson
ff7e6f2791 When lacking user-specified timer values from the SOA,
use a retry time that backs off exponentially from one minute up to
six hours.  This should allow the xferquota test to succeed [RT #337]
by allowing for one or more retries during the test, while keeping the
amount of SOA query traffic to dead masters reasonable for GNS.
2000-09-26 18:17:10 +00:00