Commit Graph
298 Commits
Author SHA1 Message Date
Andreas Gustafsson d36250a1b2 include zone.c function names in debug log messages only;
export dns_zone_log() for use by related modules
2001-01-18 23:29:31 +00:00
Andreas Gustafsson 6c90ca893c quote substituted parts of log messages with single quotes,
not double quotes
2001-01-17 00:16:20 +00:00
Andreas Gustafsson 8116149a05 if the adb had ever returned addresses of a family
other than AF_INET or AF_INET6, there would have been a memory leak
2001-01-11 20:31:31 +00:00
Brian Wellington a83405a85f zone_idetach() should be static. 2001-01-11 08:10:47 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Michael Sawyer bff300be6b Check that zone->zmgr is non-null before dereferencing 2001-01-09 00:51:53 +00:00
Mark Andrews 5bb4ceb2a6 668. [func] named-checkzone now reports multiple errors in master
files.
2001-01-09 00:43:24 +00:00
Andreas Gustafsson ca247cd9af indentation 2001-01-05 22:09:02 +00:00
Mark Andrews 0deebcd15a dns_master_load*() age_ttl -> options word 2001-01-05 03:12:45 +00:00
Mark Andrews 3dbdaa791c don't move expired zones sideways.
use the journal modification time if it is available for for last update time
2001-01-05 00:51:04 +00:00
Brian Wellington efcd383461 Update forwarding when the message buffer was no longer copied. Fix this
by having the update forwarding code tell dns_message_parse to copy
the buffer.
2001-01-05 00:17:33 +00:00
Mark Andrews f7e900edbc 652. [bug] zone_saveunique() did not report the new name. 2001-01-04 04:10:59 +00:00
Mark Andrews 55a7fc9d8f When a zone expires move the on disk cache (if any) sideways. 2001-01-02 04:45:24 +00:00
Mark Andrews 02bad0bd51 fix lock heirachy in zone_shutdown() 2000-12-29 13:20:46 +00:00
Mark Andrews 253ab81bf2 642. [bug] Break the exit_check() race in the zone module.
[RT #598]
2000-12-29 01:04:10 +00:00
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