Commit graph

1350 commits

Author SHA1 Message Date
Andreas Gustafsson
65a66336a6 redid configuration locking using isc_task_beginexclusive()
and isc_task_endexclusive() instead of a multitude of separate
configuration rwlocks
2001-02-14 03:54:53 +00:00
Andreas Gustafsson
1dd8ee4fd5 fctx_addopt() would leak an rdataset if dns_message_setopt() ever failed;
fixed it by making dns_message_setopt() guarantee to either adopt
or free the rdataset
2001-02-14 02:51:12 +00:00
Brian Wellington
100d0d2ec6 Use a refcount instead of an explicit mutex and integer. 2001-02-13 03:57:06 +00:00
Andreas Gustafsson
8126e45e8c do dns_request_t cancel processing through a control event to
ensure that dns_dispatch_removeresponse() is called from the correct task
[RT #844]
2001-02-13 02:49:07 +00:00
Brian Wellington
55f3daa4ea When parsing a message, add an offsets table to each name. Also allow callers
rendering a message to get temporary offsets tables to attach to names added
to the message.
2001-02-13 01:02:59 +00:00
Brian Wellington
29daf5bc77 The suffix returned by dns_compress_findglobal() is never used, so remove it. 2001-02-12 18:07:52 +00:00
Andreas Gustafsson
6cefb74b2b dns_dispatch_removeresponse() failed to document the
requirement that it is only called from the task where the
response entry being removed delivers its events (Michael
agrees that this is indeed a requirement)
2001-02-11 19:11:52 +00:00
Brian Wellington
319d2971f1 When the client informs the dispatcher of a received response, have the
dispatcher copy the event instead of reusing the original one.
2001-02-10 02:00:11 +00:00
Mark Andrews
80aba3d49a 734. [bug] An attempt to re-lock the zone lock could occur if
the zone was shutdown during a zone tranfer. [RT #830]
2001-02-09 06:04:55 +00:00
Brian Wellington
2d6a6174f1 micro-optimizations 2001-02-09 02:13:07 +00:00
Andreas Gustafsson
97f26b88f6 removed more needless attaching and detaching of the blackhole ACL 2001-02-09 00:23:16 +00:00
Andreas Gustafsson
a349fd680c removed all code for maintaining a 'goodness' value in the adb,
since it was never used and Michael thinks 'it should probably be removed'.
2001-02-09 00:13:55 +00:00
Andreas Gustafsson
aa23a35d81 733. [bug] Reference counts of dns_acl_t objects need to be
locked but were not. [RT #801]
2001-02-08 23:30:32 +00:00
Brian Wellington
e618d503ba Remove (now unused) code for handling queries. 2001-02-07 05:11:58 +00:00
Andreas Gustafsson
6b2f58f5c1 removed inappropriate 'Any bitstring labels are in canonical form' comments 2001-02-02 22:08:27 +00:00
Mark Andrews
8e68489885 722. [func] Allow n/named/server.cincrememtal loads to be canceled.
721.   [cleanup]       Load manager and dns_master_loadfilequota() are no
                        more.
2001-02-01 21:29:41 +00:00
Andreas Gustafsson
8d5ec7195a new dns_master_load() option DNS_MASTER_NOINCLUDE 2001-01-30 23:12:27 +00:00
Andreas Gustafsson
651421a5db removed the "additional-data" option, since it was never
fully implemented and because it causes "internal" to be a reserved word in
named.conf, causing problems for those using "internal" as an ACL name.
Since additional-data was never documented, the user-visible aspect of the
change is:

 718.   [cleanup]       "internal" is no longer a reserved word in named.conf.
                        [RT #753, #731]
2001-01-30 22:02:31 +00:00
Brian Wellington
63ca494e7e Added the isc_refcount_t type, which is a generic locked reference counter,
and make the rbtdb, zone, and view objects use it.
This should reduce contention on other locks, since (in the normal)
implementation, the reference count has its own lock.  In the future, it
should also be possible to implement an isc_refcount_t with atomic operations
instead of mutexes, which should also help performance.
2001-01-30 02:50:51 +00:00
Brian Wellington
35f06ab0e6 Clients now listen on sockets instead of accepting queries from dispatchers.
When a socket is shared by clients and query-source, the client hands off
responses to the dispatcher.
2001-01-27 02:08:07 +00:00
Brian Wellington
a12d9cfa59 710. [func] The forwarders statement now takes an optional port.
Also some assorted cleanup, which resulted in a lot of duplicated code removal.
2001-01-25 02:33:53 +00:00
Brian Wellington
d29da750d2 statistics counting was slowing down the server. Make client.c:count_query()
inline and remove dns_stats_ncounters(), which just returned the public
constant DNS_STATS_NCOUNTERS.
2001-01-23 01:50:29 +00:00
Andreas Gustafsson
d5874af5a5 removed avoid_bitstring feature from the ADB 2001-01-22 22:51:23 +00:00
Andreas Gustafsson
5042f374bc a valid buffer has the current pointer before or at the
used pointer by definition; there is no need to require that explicitly
2001-01-22 18:21:45 +00:00
Brian Wellington
9427d22299 make dns_name_fromtext fail when passed an empty string, not assert. 2001-01-22 03:30:27 +00:00
Brian Wellington
6e8b041d9c blackholed addresses were mishandled in the resolver. 2001-01-19 22:22:17 +00:00
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
Brian Wellington
6ec4990544 copyright update 2001-01-18 02:00:59 +00:00
Brian Wellington
21e82177fb make message->rcode a dns_rcode_t 2001-01-18 00:26:36 +00:00
Brian Wellington
18d110413c Move dns_dnssec_iszonekey to dns_zonekey_iszonekey, to make the rbtdb not
require all of dst to be linked in.
2001-01-17 01:22:20 +00:00
Brian Wellington
f0e246e271 Fully implement the cachefile option, which allows persistent caching. This
removes some unused code in view.c and uncomments some code in cache.c.
This still isn't really usable, since the trust level of cached data is
not persistent, so all data in the persistent cache will be promoted to
"ultimate" trust on reload.
2001-01-12 22:22:17 +00:00
Brian Wellington
2883651930 Add dns_master_style_cache 2001-01-12 19:58:51 +00:00
Andreas Gustafsson
7cdd0b6ade allow dbiterators to be paused at any time 2001-01-12 18:56:42 +00:00
Andreas Gustafsson
ff7f1dc039 676. [bug] Log messages about lame servers to category
'lame-servers' rather than 'resolver', so as not
                        to be gratuitously incompatible with BIND 8.
2001-01-11 19:38:11 +00:00
Brian Wellington
f847f8208c Fixed an uninitialized variable, removed a dead line of code, and changed
several response processing functions to not require keyrings.
2001-01-11 19:09:47 +00:00
Mark Andrews
19c7cce855 674. [func] Allow messages to be TSIG signed / verified using
a offset from the current time.
2001-01-09 23:35:33 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Andreas Gustafsson
576f85e5fd 673. [func] The server can now convert RFC1886-style recursive
lookup requests into RFC2874-style lookups, when
                        enabled using the new option "allow-v6-synthesis".
2001-01-09 18:26:01 +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
8d4bf0c21b typo 2001-01-07 22:01:34 +00:00
Brian Wellington
473af33183 more comment updates 2001-01-06 00:43:03 +00:00
Brian Wellington
4d180bd210 comment updates 2001-01-06 00:35:30 +00:00
Mark Andrews
0deebcd15a dns_master_load*() age_ttl -> options word 2001-01-05 03:12:45 +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
Andreas Gustafsson
233085a7d2 comment the master file styles in the .h file, not the .c file 2001-01-04 23:52:16 +00:00
Michael Sawyer
2b50457b87 Change the name from "parsable" to "simple" 2001-01-04 23:40:28 +00:00
Michael Sawyer
c67496c943 Add master_style_parsable 2001-01-04 22:19:18 +00:00
Brian Wellington
3e6753a753 Make a macro version of dns_name_toregion. 2001-01-04 20:00:57 +00:00
Brian Wellington
1c33761bcf Minor optimization - use the number of labels in the prefix as the loop
counter, not the number of labels in the name.
2001-01-04 19:25:59 +00:00
Brian Wellington
60103a02c6 Update the comments and kill unused structure elements, based on comments from
Mark.
2001-01-04 06:21:01 +00:00
Brian Wellington
6427a34be1 comment fixes 2001-01-04 01:25:08 +00:00
Brian Wellington
ac7f13e3dd Remove dns_trust_authsecure, which is not used and was never clearly defined. 2001-01-04 00:16:41 +00:00
Brian Wellington
8d6fe3f388 Pointers to regions are silly. Use regions instead. This removes 1 small
allocation per query.
2001-01-03 20:42:10 +00:00
Brian Wellington
6d5032f9a2 Micro-optimizations:
- use the DNS_NAME_INIT macro in name.c
	- create dns_name_copy() and use it instead of dns_name_concatenate()
	  when doing a copy.
2001-01-03 00:05:15 +00:00
Brian Wellington
917d2db965 if DNS_NAME_USEINLINE was set, DNS_NAME_SETBUFFER was defined, but never used,
since dns_name_setbuffer was never #defined to it.
2000-12-29 21:54:52 +00:00
Brian Wellington
575737b964 Rewrite the name compression code to use a hashtable instead of an RBT and
avoid allocating memory in most cases.  This increases performance by
about 225% on the rc query test (~305 q/s to 990 q/s).
2000-12-29 00:59:41 +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
Brian Wellington
d780c35e54 remove all vestiges of 16 bit global compression 2000-12-28 00:43:12 +00:00
Andreas Gustafsson
029ce2f952 need #include <dns/rdataset.h> and <dns/rdatastruct.h> 2000-12-22 23:01:56 +00:00
Brian Wellington
2374f16f5d missing ISC_LANG_ENDDECLS 2000-12-22 22:56:55 +00:00
Andreas Gustafsson
709fa2054f oops, it's <dst/dst.h>, not <dst/key.h> 2000-12-21 18:11:00 +00:00
Andreas Gustafsson
c663d46e47 need #include <dst/key.h> 2000-12-21 16:27:22 +00:00
Andreas Gustafsson
359082766e diff.h was not installed 2000-12-21 16:17:41 +00:00
Brian Wellington
58cbc05eb0 Fix memory leak in dns_view_find; return DNS_R_HINTNXRRSET instead of
DNS_R_NOTFOUND when correct to do so.
2000-12-20 23:31:11 +00:00
Brian Wellington
13090db2b1 dns_view_find can now do ANY queries; it takes additional db and node
parameters used for return values.
2000-12-20 03:38:46 +00:00
Andreas Gustafsson
ab0bc7bd36 spelling 2000-12-19 19:20:15 +00:00
Mark Andrews
1599bd6998 620. [bug] dns_master_load*inc() now require 'task' and 'load'
to be non-null.  Also 'done' will not be called if
                        dns_master_load*inc() fails immediately. [RT #565]
2000-12-17 23:43:12 +00:00
Andreas Gustafsson
113b8ef973 renamed dns_view_dumpcachetostream() to dns_view_dumpdbtostream()
and changed header comments to make it clear that it is for debugging/analysis purposes and may
dump other stuff in addition to the cache in the future.  Also changed the dump style to the
'explict TTL' one, which makes more sense than usin  when dumping cache files since the TTLs
tend to be different in each rrset, and added a comment banner at the top of each cache dump
containing the view name.
2000-12-15 21:11:38 +00:00
Brian Wellington
ee10d3de18 #include <stdio.h> 2000-12-13 21:28:38 +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
eb8713ed94 Add support for the 'rndc dumpdb' command. Also add the 'cachefile'
option to the config file, which will be used for persistent cache
storage.
2000-12-12 21:33:21 +00:00
Brian Wellington
911ed0d3be Split journal.[ch] into journal.[ch] and diff.[ch] 2000-12-09 02:17:12 +00:00
David Lawrence
71c68c49db prototype for dns_c_nameprint() 2000-12-07 22:42:22 +00:00
Mark Andrews
168ec3b800 Check ttl when adding/subtracting.
New add flag DNS_DBADD_EXACTTTL.
2000-12-07 19:51:58 +00:00
Brian Wellington
6dbf9cbe6a 596. [bug] DNS_RDATASLAB_FORCE and DNS_RDATASLAB_EXACT are
not mutually exclusive.
2000-12-06 22:19:05 +00:00
Brian Wellington
23f64ea0dc 594. [func] sdb drivers are now assumed to not be thread-safe
unless the DNS_SDBFLAG_THREADSAFE flag is supplied.
(also make the dirdb.c driver specify DNS_SDBFLAG_THREADSAFE)
2000-12-06 01:08:41 +00:00
Andreas Gustafsson
ab3f2d77bd sanitize away the DNS_OPT_NEWCODES stuff 2000-12-02 04:13:35 +00:00
Andreas Gustafsson
ce1f5b8d0a rewrote much of the statistics counter code 2000-12-01 23:49:59 +00:00
Mark Andrews
ad70a097c8 Allow views w/ same name and different class to be added to view list.
Change view add failure result test from == ISC_R_EXISTS -> != ISC_R_SUCCESS.
2000-12-01 23:27:43 +00:00
Andreas Gustafsson
9c566a852f 587. [func] A warning is now printed if the "allow-update"
option allows updates based on the source IP
                        address, to alert users to the fact that this
                        is insecure and becoming increasingly so as
                        servers capable of update forwarding are being
                        deployed.
2000-12-01 18:22:17 +00:00
Mark Andrews
4c08b67a5f 586. [bug] multiple views with the same name were fatal. [RT #516] 2000-12-01 09:03:44 +00:00
Mark Andrews
f8abaa0fae Used a unsigned int rather than a boolean to indicate subtrations making
the API more consistant between dns_db_{add,subtract}rdataset(),
dns_rdataslab_{merge,subtract}().

Adjust previous CHANGES to reflect above as this is not yet end user visible.

Add missing CHANGES entry for add/merge.
2000-12-01 01:22:45 +00:00
Andreas Gustafsson
ffc4cece90 #include <isc/mutex.h> 2000-12-01 01:03:12 +00:00
Andreas Gustafsson
d24d223c17 install conflwres.h, too 2000-12-01 00:50:28 +00:00
Mark Andrews
012c6d0b91 585. [func] dns_db_addrdataset() and and dns_rdataslab_merge()
now support 'exact' additions in a similar manner to
                        dns_db_subtractrdataset() and dns_rdataslab_subtract().
2000-11-30 13:19:09 +00:00
Andreas Gustafsson
37fb395fd7 it makes no sense for a forward zone to have
a {min,max}-re{try,fresh}-time or zone-statistics option
2000-11-28 22:42:37 +00:00
Andreas Gustafsson
0b2d261301 removed sdb NOMINUM_PUBLIC cruft 2000-11-28 02:10:03 +00:00
Andreas Gustafsson
9259fed3d8 Continue move of lib/dns/*conf.c stuff to bin/named 2000-11-27 19:42:38 +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
eac8e1d5fc added DNS_LOGMODULE_SDB 2000-11-23 02:25:02 +00:00
Bob Halley
15af30dfc1 add DNS_R_CNAMEANDOTHER and DNS_R_SINGLETON 2000-11-22 00:16:41 +00:00
Brian Wellington
1275a72e8d Don't allow metatypes to be loaded using the \# format. 2000-11-19 22:12:42 +00:00
Brian Wellington
cffe50abf6 Lots of copyright updates 2000-11-18 03:01:17 +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
Brian Wellington
08e57545c2 Allow the hashing code in the rbt to be disabled (to save memory). This
should eventually be configurable at runtime, or at least with a
configure option, but now it's just a #define in rbt.h.
2000-11-18 00:55:25 +00:00
Andreas Gustafsson
d8f9019647 566. [func] New public function dns_timer_setidle(). 2000-11-17 19:45:36 +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
Andreas Gustafsson
26e801318b clarified 2000-11-16 23:10:19 +00:00
Brian Wellington
77ac297199 Database and simple database implementations (except rbt and rbt64) are
registered dynamically.  Simple database drivers no longer use the
keyword "simple" in named.conf - the driver name is sufficient.
2000-11-16 22:33:53 +00:00
Mark Andrews
bba79bc76f remove NOMINUM_PUBLIC_DELETE 2000-11-16 21:58:09 +00:00
Andreas Gustafsson
8c962eba3d I really shouldn't commit stuff until it at least compiles 2000-11-15 19:11:36 +00:00
Andreas Gustafsson
d3a86da2e8 563. [func] New public functions dns_rdatatype_format() and
dns_rdataclass_format(), for convenient formatting
                        of rdata type/class mnemonics in log messages.
2000-11-15 19:05:32 +00:00
Andreas Gustafsson
6a56be50dd new result code DNS_R_BADALG 2000-11-15 00:51:17 +00:00
Brian Wellington
942d1a339b Decompression contexts now take a type instead of the "strict" boolean
value - the type can be "any", "strict", or "none".  This fixes potential
problems with compression in unknown rr types.
2000-11-14 23:29:55 +00:00
Brian Wellington
78d78f05d9 556. [func] The DNSSEC OK bit in the EDNS extended flags
is now implemented.  Responses to queries without
                        this bit set will not contain any DNSSEC records.
2000-11-13 21:34:03 +00:00
Brian Wellington
47fa8b4c8f fix outdated comments 2000-11-13 20:12:03 +00:00
Andreas Gustafsson
c2a94d89f9 clarified comments 2000-11-11 01:15:33 +00:00
Andreas Gustafsson
84abb95f7e 551. [func] Implemented the 'sortlist' option. 2000-11-10 03:41:08 +00:00
Andreas Gustafsson
febaa09184 551. [func] Implemented the 'sortlist' option. 2000-11-10 03:16:26 +00:00
Andreas Gustafsson
b0ce1ff804 typo 2000-11-10 03:14:25 +00:00
Andreas Gustafsson
7f73d29ac5 comments about who is responsible for freeing the memory
of rdata and rdatalists borrowed from messages were incorrect
2000-11-10 03:13:03 +00:00
Brian Wellington
ebfcb6cf66 550. [func] Support unknown rdata types and classes. 2000-11-09 23:55:05 +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
Mark Andrews
bfcdcde570 implement lame-ttl. 2000-11-08 03:53:16 +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
Brian Wellington
7499479679 spelling 2000-11-07 23:43:23 +00:00
Mark Andrews
4ec1a96d90 542. [func] Add allow-update-forwarding support. 2000-11-06 08:11:11 +00:00
Andreas Gustafsson
41b27cf6b4 removed unused global variable declaration of dns_zone_countsize 2000-11-03 18:43:53 +00:00
Andreas Gustafsson
71b5fa7fb7 commented new dialup-related functions 2000-11-03 18:42:56 +00:00
Andreas Gustafsson
bfb0e358c8 commented dns_view_dialup() 2000-11-03 18:35:31 +00:00
Mark Andrews
0fc89c4ee6 540. [func] Add dialup support. 2000-11-03 07:16:09 +00:00
Brian Wellington
e21d199dca 539. [func] Support the blackhole option. 2000-11-03 02:45:55 +00:00
Brian Wellington
e3e3bafa13 Lookups now return sigrdatasets if they exist. 2000-11-02 00:55:41 +00:00
Mark Andrews
f4166b4dc3 allow transfer-source to be set on master zones.
print the transfer-source port.
2000-10-31 04:20:54 +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
Brian Wellington
bb71d64085 dns_message_checksig should not require a view in all cases 2000-10-27 21:56:57 +00:00
David Lawrence
b65f2ab14a 534. [func] Ancestors have been removed from RBT chains. Ancestor
information can be discerned via node parent pointers.

 533.	[func]		Incorporated name hashing into the RBT database to
			improve search speed.

There is still evidence of a bug with regard to bitstring labels.  It shows
up in bin/test/rbt/t_rbt -x -t 4 when the assertion at lib/dns/rbt.c:1631
is uncommented -- essentially a bitstring node's location in the hashtable
is not getting properly updated at some point.  This shouldn't affect
searching, because a bitstring label as the parent of a new level will
generally cause the standard old binary search to be done.  I will be looking
at this more closely in the very near future.
2000-10-25 07:21:31 +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
389c749a5e 530. [func] New function dns_rdata_invalidate(). 2000-10-24 02:03:33 +00:00
Brian Wellington
f8a55f9955 Added "ndots" to the lwres{} statement in named.conf 2000-10-20 19:32:49 +00:00
Mark Andrews
29c818c7d4 527. [func] New function dns_rdata_clone(). 2000-10-20 13:22:36 +00:00
Andreas Gustafsson
f8020519b3 added more commentary 2000-10-19 18:09:34 +00:00
Mark Andrews
e6bd97dded Add 'flag' to rdata 2000-10-19 05:50:54 +00:00
Andreas Gustafsson
5a11763ab2 added support for a search{} clause in the lwres{} statement 2000-10-19 01:26:39 +00:00
Andreas Gustafsson
4913f156c4 typo 2000-10-19 01:25:55 +00:00
Andreas Gustafsson
96aa1f5236 spacing 2000-10-19 01:25:38 +00:00
Mark Andrews
b55c30f2de 525. [func] New arguement 'exact' for dns_db_subtractrdataset(),
and dns_rdataslab_subtract() requesting that the RR's
                        must exist prior to deletion.  DNS_R_NOTEXACT is
                        returned if the condition is not met.
2000-10-18 23:53:31 +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
3688a648ff mising declarations 2000-10-17 10:59:48 +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
Brian Wellington
8804fd9936 Split off the generic dns query functionality from the byaddr module into
the lookup module, and make byaddr use lookup.
2000-10-17 01:57:42 +00:00
Mark Andrews
20a313a458 Add DNS_R_UNEXPECTEDID. 2000-10-16 04:08:13 +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
Michael Sawyer
94b50bce2b Add zone-specific reload and refresh capability to server and rndc 2000-10-12 21:52:00 +00:00
Brian Wellington
0e5d6900bd Various hacks to allow (at some point in the future) interoperability
with Windows 2000's broken implementation of TKEY.
2000-10-12 00:40:52 +00:00
Brian Wellington
4a200b9022 Add tkey-gssapi-credential to the options section 2000-10-12 00:38:30 +00:00
Michael Sawyer
dc570b92f6 Add support for proposed ZONE and VIEW opt attributes. These are currently
hidden behind #ifdef's, since no OPT code number has yet to be assigned
by the IANA.  They are also not quite complete in all regards; VIEW
options are understood and ignored.  ZONE options are understood and
acted upon, though some of the error cases aren't quite right.

Remove doubled isc_mem_stats in dighost.c

Update todo list.

Change literal 255's to DNS_NAME_MAXWIRE in name.c
2000-10-11 17:44:18 +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
Brian Wellington
4ed956c5c0 current snapshot of gss-tsig code. I'd be surprised if this works with
w2k, but a bind9 client and server can talk.
2000-10-06 17:08:15 +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
Brian Wellington
9d794b5203 Added lwres{} statement to named.conf. 2000-10-04 18:47:24 +00:00
Brian Wellington
5a4f9ff34f The makefiles should be sdb-clean now. 2000-09-26 23:25:51 +00:00
Brian Wellington
8614264835 protect the simple database stuff with NOMINUM_PUBLIC 2000-09-26 22:45:59 +00:00
Brian Wellington
c76926d714 comment updates 2000-09-26 22:14:35 +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
3c754b3581 removed function dns_zone_setrefresh() 2000-09-26 17:24:00 +00:00
Mark Andrews
5a98a57f8f 489. [func] The zone manager now has a "i/o" queue. 2000-09-26 05:16:57 +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
922e6a3c2a 478. [bug] "make install" failed if the directory specified with
--prefix did not already exist.
2000-09-20 19:06:16 +00:00
Brian Wellington
54bf299982 Don't assume class IN; rename functions to conform to the naming style. 2000-09-12 09:55:32 +00:00
Mark Andrews
68516a98cb document dns_message_getrawmessage 2000-09-11 23:37:34 +00:00
Mark Andrews
29a9d783b2 440. [func] New function dns_zone_forwardupdate(). 2000-09-11 13:34:18 +00:00
Mark Andrews
b9dead30b1 440. [func] New function dns_zone_forwardupdate(). 2000-09-11 13:26:22 +00:00
Mark Andrews
056141f287 439. [func] New function dns_request_createraw(). 2000-09-11 06:35:57 +00:00
Mark Andrews
5126112bc3 438. [func] New function dns_message_getrawmessage(). 2000-09-11 05:55:27 +00:00
Andreas Gustafsson
c9f54e6d04 unbalanced quotes in comment 2000-09-08 21:35:45 +00:00
Mark Andrews
9916239908 Initial opaque rdata support. 2000-09-06 03:25:23 +00:00
Mark Andrews
d22b4de3f1 Throttled answer while loading support (still needs config file hooks). 2000-09-05 03:35:24 +00:00
Michael Graff
ca0db0cdc8 stop mumbling in dispatch.h by filling out the comments. Fixed a bug, since I was here already. 2000-09-01 07:16:06 +00:00
Brian Wellington
88b9c12a3c rdataslabs are now sorted. Also added a function to compare two rdataslabs. 2000-09-01 01:35:21 +00:00
Andreas Gustafsson
50a3152b70 clarified comment 2000-08-31 16:58:28 +00:00
Mark Andrews
ce0c777a38 overmem was out of order 2000-08-31 13:00:57 +00:00
Mark Andrews
3a34b87c87 Add cache cleaning support (disabled). 2000-08-31 12:15:17 +00:00
Brian Wellington
352cb92ac2 DNS_KEYALG_MD5RSA -> DNS_KEYALG_RSAMD5 2000-08-29 19:45:33 +00:00
Michael Graff
306a935305 add find->result_v[46] 2000-08-26 02:21:45 +00:00
Brian Wellington
0a88c09dc9 #include <isc/mutex.h> 2000-08-25 01:16:04 +00:00
Brian Wellington
504b5167f3 #include <isc/mutex.h> 2000-08-25 01:08:07 +00:00
Brian Wellington
30e6ea9ded 405. [func] Add support for selective forwarding (forward zones) 2000-08-24 22:15:40 +00:00
Andreas Gustafsson
1ccdb91515 typo in comment 2000-08-24 01:19:58 +00:00
Brian Wellington
60b90a37f4 Support for AXFR and minor cleanup. 2000-08-23 18:28:03 +00:00
Brian Wellington
75e1e12f48 use a 'dns_sdbmethods_t' instead of passing all of the functions to
dns_sdb_register as parameters.
2000-08-22 22:06:46 +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
Andreas Gustafsson
5965096e50 made flags values use leading zeros to indicate field width 2000-08-22 01:46:12 +00:00
Brian Wellington
4fd3021d3b comment updates, remove duplicate rcsid. 2000-08-22 01:26:08 +00:00
Brian Wellington
f5a9dda3f3 dns_db_ispersistent() really returns an isc_boolean_t. 2000-08-22 01:20:05 +00:00
Brian Wellington
87af548ceb Add sdb.h to the list of headers to be installed. 2000-08-22 00:55:21 +00:00
Brian Wellington
a4c351fcef Add a flags field to dns_sdb_register. One flag requests that names passed in
be relative, and another specifies that rdata strings will contain relative
names.
2000-08-22 00:53:31 +00:00
Brian Wellington
033ba09d6d Simple database implementation. This includes a wrapper that makes a simple
database look like a dns_db_t, and a set of routines to be called by specific
simple databases.
2000-08-21 22:15:28 +00:00
Andreas Gustafsson
84c25ccb3d NOMINUM, not NOMINMUM 2000-08-19 00:47:18 +00:00
Brian Wellington
fe12eb4fc2 Add dns_db_ispersistent. This call determines whether a database is
persistent - that is, whether it maintains itself and doesn't require
loading, dumping, and other related things.
2000-08-18 18:25:28 +00:00
Andreas Gustafsson
6826f014d6 cleaned up comments and added missing ones 2000-08-17 23:45:12 +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
Brian Wellington
a00c5e2151 gss-tsig support 2000-08-17 02:08:27 +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
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
Mark Andrews
031f9084fc 394. [bug] Current name was not propagated via $INCLUDE.
393.   [func]          Initial answer while loading (awl) support.
                        Entry points: dns_master_loadfileinc(),
                        dns_master_loadstreaminc(), dns_master_loadbufferinc().
                        Note: calls to dns_master_load*inc() should be rate
                        be rate limited so as to not use up all file
                        descriptors.
2000-08-15 03:33:52 +00:00
Brian Wellington
9cd6710f91 validators can now be cancelled. 2000-08-15 00:21:05 +00:00
Brian Wellington
1e2749dba8 Yet more minor cleanup. 2000-08-14 22:00:00 +00:00
Andreas Gustafsson
0e05b42192 dns_zt_print() is gone 2000-08-14 19:52:21 +00:00
Brian Wellington
b0f941a50f 387. [func] Add dns_byaddr_createptrname(), which converts
an address into the name used by a PTR query.
2000-08-14 19:09:56 +00:00
Brian Wellington
f2338a0d6a Minor tsig cleanup. 2000-08-14 18:13:11 +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
7e6d32fdba #endif /* NOMINUM_PUBLIC */ was missing the magic comment 2000-08-11 21:51:04 +00:00
Andreas Gustafsson
eea2865fec 385. [cleanup] Removed function dns_zone_equal(). 2000-08-10 18:35:46 +00:00
Brian Wellington
41654670e7 Added dns_dnssec_iszonekey() to determine if a KEY is a zone key without
the overhead of converting it to a dst key.
2000-08-10 02:00:35 +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
Andreas Gustafsson
4870ad08e8 wired up and implemented the max-names zone option (for GNI) 2000-08-08 23:36:24 +00:00
Andreas Gustafsson
4a2af70858 added DNS_NAME_MAXTEXT and DNS_NAME_FORMATSIZE 2000-08-08 23:20:14 +00:00
Andreas Gustafsson
f4bc158a46 in dns_name_isabsolute(), dns_name_fullcompare(),
and dns_name_compare(), do not require that the name has >0 labels
so that these functions can be used on the degenerate relative name @
2000-08-08 23:18:12 +00:00
Brian Wellington
0a4577a158 Added DNS_R_ZONETOOLARGE 2000-08-08 22:50:34 +00:00
Andreas Gustafsson
979f959fb5 fixed incomplete sentence 2000-08-07 19:30:58 +00:00
Mark Andrews
e06aebbe7b 371. [doc] document that dns_journal_rollforward can return
ISC_R_RANGE.
2000-08-03 21:31:41 +00:00
Brian Wellington
19f4d25fd5 Add dns_master_dumpnode, dns_master_dumpnodetostream, and
dns_master_style_explicitttl.
2000-08-03 19:50:12 +00:00
Brian Wellington
83e6eb0dfe Add routines to count the number of nodes in a database and an rbt. 2000-08-03 19:46:37 +00:00
Michael Graff
cb9aa603ab wire up the {min,max}-{refresh,retry}-time stuff 2000-08-02 22:29:16 +00:00
James Brister
385a9cb48a 369. [func] Support new named.conf options, view and zone
statements:

				max-retry-time, min-retry-time,
				max-refresh-time, min-refresh-time, max-names.
2000-08-02 20:44:27 +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
David Lawrence
c5944292e9 361. [func] When the RBT find or chain functions set the name and
origin for a node that stores the root label
			the name is now set to an empty name, instead of ".",
			to simplify later use of the name and origin by
			dns_name_concatenate(), dns_name_totext() or
			dns_name_format().

 360.	[func]		dns_name_totext() and dns_name_format() now allow
			an empty name to be passed, which is formatted as "@".
2000-07-31 23:27:25 +00:00
David Lawrence
051d1879fe dns_name_totext() now allows names with 0 labels, which format as "@" 2000-07-31 23:09:49 +00:00
Michael Graff
6d3496c045 Implement additional-from-{glue,auth} [ yes | no ] ;
with yes being the default.  These control searching in the cache and
other zones we are authorative for.  This is mostly for gdib, but
may be useful elsewhere.

The config changes are renaming from glue-from-* to additional-from-*,
since this also prevents DNAME, CNAME, NS, MX, etc. additional data
from being followed.
2000-07-31 21:07:07 +00:00
Brian Wellington
da786e7937 Sending a TSIG signed query with a TSIG algorithm that's not
HMAC-MD5.SIG-ALG.REG.INT shouldn't crash the server.  Also, the description
of dns_tsigkey_create was wrong in at least one place, and the function
incorrectly returned an undocumented result.
2000-07-28 23:27:01 +00:00
Brian Wellington
019a2ec92c A comment had an extra *. 2000-07-27 23:56:41 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Andreas Gustafsson
4d9b99ccb2 the client control event should be a server event,
not a DNS library event
2000-07-26 23:45:55 +00:00
Michael Sawyer
a53151d995 Fix up some of the sanatize code and make kits correctly 2000-07-26 23:40:22 +00:00
David Lawrence
894a2f61c9 minor style issue -- missing periods at ends of sentences/phrasesin comments. 2000-07-26 21:32:57 +00:00
Michael Sawyer
761a1c3761 Add sanitizer and hide per-master key code behind sanitizing #ifdefs 2000-07-26 18:47:43 +00:00
Andreas Gustafsson
a32738e3e4 352. [bug] Race condition in dns_client_t startup could cause
an assertion failure.
2000-07-26 17:39:12 +00:00
James Brister
b28affc652 Added missing prototypes. 2000-07-25 20:17:52 +00:00
James Brister
d4ab9cd94f 348. [func] New named.conf boolean values 'glue-from-auth' and
'glue-from-cache' now supported in view and global
			options statement.
2000-07-25 17:55:43 +00:00
Brian Wellington
969f24b04c dns_dnssec_verifymessage should make sure that it's verifying with the right
key (which should be the case anyway, but it never hurts to check).  Also
fix a memory leak and change a few _tostruct() calls to not allocate memory.
2000-07-25 17:12:00 +00:00
Andreas Gustafsson
81b94e091c added new fetch option DNS_FETCHOPT_NOVALIDATE 2000-07-25 17:03:21 +00:00
Brian Wellington
687d363dea The "Ensures" condition for dns_db_deleterdataset was obviously wrong. 2000-07-24 23:10:50 +00:00
Michael Graff
ef653fbdb1 implement 'notify [ yes | no | explicit ]' 2000-07-24 22:59:44 +00:00
Brian Wellington
3b2efab212 There's no real difference between the "sring" and "dring" parameters, so
call them "ring1" and "ring2" instead.  Also remove a bogus assertion.
2000-07-21 22:38:31 +00:00
James Brister
c35f1e5937 341. [func] Support 'key' clause in named.conf zone masters
statement:

                                masters {
                                        10.0.0.1 port 666 key "foo";
                                        10.0.0.2 ;
                                };
2000-07-21 21:25:01 +00:00
Brian Wellington
a49acbf201 Store tsig keys in an rbt, not a list. 2000-07-21 20:53:59 +00:00
Andreas Gustafsson
e30c4dbe6f typos 2000-07-21 20:37:01 +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
49c8a96fba Don't require that tsig keys must be on a keyring. Also some other cleanup. 2000-07-18 00:46:03 +00:00
David Lawrence
da527e4ff6 332. [func] New function dns_name_reset(). 2000-07-14 19:12:54 +00:00
Brian Wellington
4250285838 Return DNS_R_NAMETOOLONG in a few places where less useful errors were
returned before.
2000-07-13 18:10:18 +00:00
Brian Wellington
618e871c2e Add DNS_R_NAMETOOLONG 2000-07-13 02:41:20 +00:00
James Brister
adade77942 326. [func] 'keys' in an 'inet' control statement is now
required and must have at least one item in it.

                        warning is issued if a 'unix' control channel is
                        defined (not supported).
2000-07-11 19:09:10 +00:00
David Lawrence
d4868faf3f removed the port member from dns_c_ctrl_t; the port is put in the sockaddr. 2000-07-10 11:28:31 +00:00
David Lawrence
838281ed55 318. [func] dns_c_ndcctx_destroy() could never return anything
except ISC_R_SUCCESS; made it have void return instead.
2000-07-10 11:27:12 +00:00
Andreas Gustafsson
f405ffddc8 added missing requirements 2000-07-08 17:27:28 +00:00
James Brister
475c936d4c 314. [func] Inet controls named.conf statement can now have
any non-negative number of keys specified.
2000-07-07 23:11:48 +00:00
James Brister
952e9025b0 310. [func] Changes to named.conf "controls" statement (inet
subtype only)

                          - support "keys" clause

                                controls {
                                   inet * port 1024
                                        allow { any; } keys { "foo"; }
                                }

                          - allow "port xxx" to be left out of statement,
                            in which case it defaults to omapi's default port
                            of 953.
2000-07-07 13:56:14 +00:00
David Lawrence
3658cf5419 comment cleanup (missing "not", spaces where tabs should have been) 2000-07-07 00:25:47 +00:00
David Lawrence
9fb4b3f08a Do not return an exact match from dns_rbt_findnode() when the exact
match does not have associated data and DNS_RBTFIND_EMPTYDATA is not set.
Return DNS_R_PARTIALMATCH instead if there is a superdomain with
data, or ISC_R_NOTFOUND if no superdomain has data.

Make dns_rbt_findname() honor DNS_RBTFIND_EMPTYDATA, per the rbt.h
documentation that has been saying it will.  It didn't.
2000-07-06 23:54:45 +00:00
Mark Andrews
84cb41f729 new error code DNS_R_NOTZONETOP 2000-07-04 03:59:54 +00:00
David Lawrence
24675e8e13 In dns_dispatch_createtcp(), REQUIRE() that attributes not include
DNS_DISPATCHATTR_UDP, and document that requirement as well as the
existing requirement for needing DNS_DISPATCHATTR_TCP.

No need to pull up.
2000-07-04 01:48:13 +00:00
Andreas Gustafsson
26be84cdfc spelling, grammar, and formatting; no functional change 2000-06-29 16:48:53 +00:00
Andreas Gustafsson
95e7cd1ecb commented 2000-06-26 22:09:49 +00:00
Mark Andrews
b74e3d974b comment update 2000-06-23 17:30:59 +00:00
David Lawrence
7657358689 does not need isc/types.h 2000-06-23 03:00:30 +00:00
David Lawrence
0980761026 does not need mutex.h 2000-06-23 03:00:01 +00:00
David Lawrence
aea59f157b does not need eventclass.h 2000-06-23 02:59:28 +00:00
David Lawrence
5c54d949cf style lint 2000-06-23 02:59:05 +00:00
Brian Wellington
d4edcfe5eb Add tsig and tkey log moduleS 2000-06-23 01:51:18 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
Andreas Gustafsson
0ede98ca38 typo in comment 2000-06-22 21:45:30 +00:00
David Lawrence
28d9fd5381 update_copyrights 2000-06-21 22:45:24 +00:00
Michael Graff
80617c8faa Add using an entropy source to generate a random query ID seed value. 2000-06-21 21:34:43 +00:00
Mark Andrews
3c671ac666 264. [func] Dispatch can not take TCP sockets in connecting
state.  Set DNS_DISPATCHATTR_CONNECTED when calling
                        dns_dispatch_createtcp() for connected TCP sockets
                        or call dns_dispatch_starttcp() when the socket is
                        connected.
2000-06-20 23:52:54 +00:00
James Brister
58c42ee18c 263. [func] New logging channel type 'stderr'
channel some-name {
                                        stderr;
                                        severity error;
                                }
2000-06-20 21:36:49 +00:00
David Lawrence
5336b803ae style lint 2000-06-20 04:12:15 +00:00
Mark Andrews
242dfd9cc6 261 [func] Add dns_zone_markdirty(). 2000-06-19 23:05:32 +00:00
James Brister
0d5d8e2bbf 259. [func] New random-device and random-seed-file statements
for global options block of named.conf. Both accept
                        a single string argument.
2000-06-15 23:38:16 +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
Andreas Gustafsson
2f259b4eec commented 2000-06-12 19:23:51 +00:00
Brian Wellington
14c5931d3d tkey cleanups and conversion to the entropy api 2000-06-09 22:33:08 +00:00
Andreas Gustafsson
2bb908bd0b style; removed references to EDNS1 and local compression 2000-06-09 21:52:27 +00:00
Andreas Gustafsson
1cad45e9cf whitespace changes in copyright message 2000-06-09 20:59:32 +00:00
James Brister
47c196192a Rename cache-size config option to max-cache-size and change argument
type to be strict integer (no 'default' or 'unlimited')..
2000-06-09 15:03:28 +00:00
James Brister
adf8222185 Rename global option cachesize to cache-size and add corresponding option
to view statement.
2000-06-09 08:48:42 +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
bcff319811 Wildcard NS records are not conceptually allowed by RFC 103[45]. 2000-06-09 06:03:47 +00:00
James Brister
71a4339351 Empty named.conf file and empty options statement are now parsed properly.
New cachesize option for named.conf

Fixed incorrect warning about auth-nxdomain usage.
2000-06-08 12:04:56 +00:00
Mark Andrews
0380c44d02 241. [cleanup] nscount and soacount have been removed from the
dns_master_*() arguement lists.
2000-06-07 03:30:02 +00:00
Mark Andrews
265086fc36 Added comments. 2000-06-07 03:12:13 +00:00
Mark Andrews
a6733246ea 240. [func] databases now come in three flavours: zone, cache
and stub.
2000-06-07 02:38:41 +00:00
Andreas Gustafsson
ee03a00244 changed references to 'binary buffer' in comments
to just 'buffer', as there is no longer a distinction between binary
and text buffers
2000-06-06 17:47:54 +00:00
James Brister
616c83b78b temporarily disable code that validates listen-on and listen-on-v6 lists. 2000-06-06 14:20:03 +00:00
Mark Andrews
7ed73313b1 Add function to determine whether a given request used TCP or not. 2000-06-06 02:07:13 +00:00
James Brister
c78dc8b001 Added new listen-on-v6 config file statement.
Consider it a config file error if a listen-on statement has an IPv6
address in it, or a listen-on-v6 statement has an IPv4 address in it.
2000-06-05 22:08:50 +00:00
Andreas Gustafsson
f1f2f8bd47 Wired up the new 'port' option. Also, the interface manager now has
both a 'listen-on' and a 'listen-on-v6' ACL.  We are still waiting for
the 'listen-on-v6' config file option to set the latter explicitly,
but at least the default value now tracks the 'port' option and the
'-p' command line option.
2000-06-05 19:10:13 +00:00
James Brister
029f5aa861 Conversion of various config file values to isc_uint32_t. 2000-06-05 09:17:14 +00:00
James Brister
69b691c962 Support new 'port' clause in config file options section. Causes
'listen-on', 'masters' and 'also-notify' statements to use its value
instead of default (53).
2000-06-04 19:51:22 +00:00
Brian Wellington
4fe8755480 Use the new DST API 2000-06-02 18:59:33 +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
James Brister
98c2f9a111 Support config file trusted-keys and also-notify statemenets in views.
Support config file sig-validity-interval statement in options, views
and zone statements (master zones only).

Logging messages in config module stripped of trailing period.
2000-06-02 15:12:36 +00:00
David Lawrence
1c70c5ee90 227. [cleanup] The enumerated identifiers dns_rdataclass_*,
dns_rcode_*, dns_opcode_*, and dns_trust_* are
                        also now cast to their appropriate types.
2000-06-02 01:07:05 +00:00
Andreas Gustafsson
a3c0a79b61 dns_name_totext() now always prints the root name as '.',
even when omit_final_dot is true
2000-06-02 00:14:02 +00:00
David Lawrence
0b056755b2 225. [cleanup] The enumerated dns_rdatatype_* identifiers are now
cast to dns_rdatatype_t via macros of their same name
                        so that they are of the proper integral type wherever
                        a dns_rdatatype_t is needed.

(And a few prototypes that I recently bogusly changed to take "int" parameters
in place of "dns_rdatatype_t" to accomodate the type of an enum identifier
have been reverted to again properly take a dns_rdatatype_t.)
2000-06-01 21:42:42 +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