Commit Graph
390 Commits
Author SHA1 Message Date
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
Andreas Gustafsson d8d05d04fa the ternary operator ?: does not yield an lvalue 2000-09-26 17:28:13 +00:00
Andreas Gustafsson 3c754b3581 removed function dns_zone_setrefresh() 2000-09-26 17:24:00 +00:00
Andreas Gustafsson 94361d5867 simplified isc_random_jitter() and eliminated floating
point from the code using it in zone.c
2000-09-26 17:23:19 +00:00
Andreas Gustafsson 61a31f75cd added INSISTs to verify that zone timer intervals
are set before use
2000-09-26 16:32:39 +00:00
Mark Andrews 2bebe117bf 489. [func] The zone manager now has a "i/o" queue. 2000-09-26 05:08:05 +00:00
Andreas Gustafsson 629c6629d0 zone_postload() used variable "new" before setting it [RT #337] 2000-09-23 06:27:12 +00:00
Mark Andrews 0e07026a21 476. [bug] A zone could expire while a zone transfer was in
progress triggering a INSIST failure. [RT #329]
2000-09-20 09:50:34 +00:00
Mark Andrews b374727d51 456. [bug] Stub zones were not resetting the refresh and expire
counters, loadtime or clearing the DNS_ZONE_REFRESH
                        (refresh in progress) flag upon successful update.
                        [RT #300]
2000-09-14 03:55:38 +00:00
Mark Andrews f671d6d103 cleanup unncessary dns_zone_{iattach,idetach}(). 2000-09-13 04:50:19 +00:00
Mark Andrews a506c6f9be cleanup remove some unnecessary dns_zone_{iattach,idetach}() calls.
notify_destroy() now takes a locked arguement.
notify_send() no longer destroys its arguement.
2000-09-13 04:12:42 +00:00
Mark Andrews 7a21d6207f attach/detach tracing at ISC_LOG_DEBUG(10).
style fix (foo -> foo != NULL).
remove potential REQUIRE failure.
2000-09-13 01:00:39 +00:00
Mark Andrews 91ac60fe11 446. [bug] Confusing notify log message. [RT #298] 2000-09-12 22:50:52 +00:00
Mark Andrews 694d98c143 cleanup notify_log & zone_log to reduce common code. 2000-09-12 01:22:12 +00:00
Andreas Gustafsson 400f5eeb2c spelling 2000-09-11 20:51:47 +00:00
Mark Andrews b9dead30b1 440. [func] New function dns_zone_forwardupdate(). 2000-09-11 13:26:22 +00:00
Mark Andrews 668278867b 437. [func] Log NOTIFY activity to the notify channel. 2000-09-11 04:37:52 +00:00
Andreas Gustafsson b7e031d517 435. [bug] dns_zone_dump() overwrote existing zone files
rather than writing to a temporary file and
                        renaming.  This could lead to empty or partial
                        zone files being left around in certain error
                        conditions involving the initial transfer of a
                        slave zone, interfering with subsequent server
                        startup. [RT #282]
2000-09-08 21:47:03 +00:00
Michael Graff 4e8518aa8f add up to 10 minutes of jitter for refresh/retry, clammed as: RETRYTIME >= actual_retry >= RETRYTIME * .80 2000-09-08 00:07:44 +00:00
Mark Andrews 50bea34058 more notify_createmessage() cleanup. 2000-09-07 04:20:52 +00:00
Mark Andrews 05fff5d905 424 [bug] notify_createmessage could trigger a REQUIRE failure
w/ two SOA records for the zone (illegal). [RT #279]
2000-09-07 01:06:45 +00:00
Mark Andrews d22b4de3f1 Throttled answer while loading support (still needs config file hooks). 2000-09-05 03:35:24 +00:00
Mark Andrews a21fbfdd30 413. [bug] notify could attempt to use the zone database after
it had been unloaded. (RT#267)
2000-08-31 06:16:42 +00:00
Mark Andrews 5ebcf506a1 remove unneccessary call to notify_createmessage() 2000-08-31 00:31:38 +00:00
Mark Andrews f3788d318d Do not forward notifies if they fail to pass the SOA serial check. 2000-08-29 03:45:48 +00:00
Brian Wellington 5e387b9ce6 and more calls to DESTROYLOCK 2000-08-26 01:37:00 +00:00
Mark Andrews ec4060d310 408. [bug] stub zones could leak memory and refernce counts if
all the masters were unreachable.
2000-08-25 04:42:49 +00:00
Andreas Gustafsson ce2d576f3c another missing /* NOMINUM_PUBLIC */ comment 2000-08-22 19:32:47 +00:00
Andreas Gustafsson f0bdf4aa8b #endif /* NOMINUM_PUBLIC */ was missing the required comment 2000-08-22 17:36:31 +00:00
Mark Andrews 8249eee42a notify-any to allow-notify conversion.
notify-relay to notify-forward conversion.
2000-08-22 05:14:59 +00:00
Brian Wellington ea18740a0a Only call dns_db_load if the zone is not persistent. dns_db_ispersistent()
should be called in more places, but this is the only one absolutely
necesaary for simple databases to work.
2000-08-21 22:20:32 +00:00
Andreas Gustafsson 2d1bc69493 #endif missing required /* NOMINUM_PUBLIC */ comment 2000-08-19 00:47:57 +00:00