Andreas Gustafsson
01818a424a
document return value of the sdb lookup function
2001-10-13 01:32:34 +00:00
Andreas Gustafsson
024face21c
1042. [bug] The "config" logging category did not work properly.
...
[RT #1873 ]
2001-10-11 01:16:18 +00:00
Andreas Gustafsson
247b6de61b
Some comments referred to DNS_R_NOTVERIFIEDYET as
...
DNS_R_SIGNOTVERIFIEDYET
2001-10-10 21:39:16 +00:00
Andreas Gustafsson
9066d09c3e
Removed all code within #ifdef DNS_OPT_NEWCODES*.
...
It was the last thing being sanitized out of releases; removing
it makes it possible to eliminate the sanitation process.
2001-10-01 18:54:05 +00:00
Mark Andrews
96ea98af24
1023. [func] Accept hints without TTLs.
2001-09-30 04:31:28 +00:00
Brian Wellington
c9b3f64262
fix comment
2001-09-25 22:45:02 +00:00
Mark Andrews
8296690f17
DNS_EVENT_QUERYABORTED is no longer gemerated.
2001-09-21 14:00:06 +00:00
Brian Wellington
8f674b13e8
dns_time*_fromtext should take "const char *"s, not "char *"s.
2001-09-21 00:11:30 +00:00
Andreas Gustafsson
01446841be
1006. [bug] If a KEY RR was found missing during DNSSEC validation,
...
an assertion failure could subsequently be triggered
in the resolver. [RT #1763 ]
2001-09-19 21:25:46 +00:00
Brian Wellington
21825a8d00
Sync up the dnssec key algorithms listed in include/dns/keyvalues.h and
...
rdata.c.
2001-09-19 00:14:48 +00:00
Andreas Gustafsson
34aa790937
reverted 994.
2001-09-14 20:53:33 +00:00
Mark Andrews
56d69016f4
994. [bug] If the unsecure proof fails for unsigned NS records
...
attempt a secure proof using the NS records found as
glue to find the NS records from the zone's servers
along with associated glue rather than from parent
servers. [RT #1706 ]
2001-09-13 07:23:39 +00:00
Andreas Gustafsson
8cccaeaee1
New named.conf option "ixfr-from-differences" [RT #1727 ]
2001-09-08 00:21:49 +00:00
Mark Andrews
ed03e26c44
Add dns_dumpctx_db() and dns_dumpctx_version().
2001-09-05 10:28:55 +00:00
Mark Andrews
9aba20edee
979. [func] Incremental master file dumping. dns_master_dumpinc(),
...
dns_master_dumptostreaminc(), dns_dumpctx_attach(),
dns_dumpctx_detach() and dns_dumpctx_cancel().
2001-09-04 14:18:31 +00:00
Mark Andrews
bae5d9fcb4
977. [bug] Improve "not at top of zone" error message.
2001-09-04 00:35:19 +00:00
Mark Andrews
06a960c681
971. [func] 'try-edns' can be use to disable edns on all queries.
2001-08-30 05:52:18 +00:00
Mark Andrews
2c64908ae0
DNS_R_NOTAUTHORITATIVE
2001-08-30 05:10:55 +00:00
Mark Andrews
53e3724e23
dns_journal_compact()
2001-08-30 05:04:18 +00:00
Mark Andrews
28fc90e6c8
#857 was incomplete, ISC_MAGIC was not being used everwhere it should have been.
...
'magic' was not being declared consistantly.
some #include <isc/magic.h> were missing from other include files.
NS_SERVER_VALID was not using ISC_MAGIC_VALID.
2001-08-28 03:58:29 +00:00
Andreas Gustafsson
9c067741f1
don't #define DNS_STATS_NCOUNTERS in two different places [RT #1666 ]
2001-08-27 21:47:00 +00:00
Mark Andrews
73ac1894ea
964. [func] Warn if non root hints data is found in hints file.
2001-08-27 03:36:00 +00:00
Brian Wellington
ee3ab6063d
945. [func] Add the new view-specific options
...
"match-destinations" and "match-recursive-only".
2001-07-26 20:42:46 +00:00
Andreas Gustafsson
831bbce008
commented trust levels
2001-07-23 17:55:37 +00:00
Danny Mayer
f621719829
Added support for Win32
2001-07-16 05:10:30 +00:00
Andreas Gustafsson
23ac0d8259
comments for dns_message_parse() referred to
...
nonexistent arguments
2001-06-14 18:38:48 +00:00
Mark Andrews
03f91269f5
856. [func] Allow partial rdatasets to be returned in answer and
...
authority sections to help non-TCP capable clients
recover from truncation. [RT #1301 ]
2001-06-05 09:02:16 +00:00
Bob Halley
eba5c23154
undo 1.54, which was an accidental commit
2001-06-01 03:07:54 +00:00
Bob Halley
875542855a
update to 9.3.0, now that the 9.2 release branch has been created
2001-06-01 03:05:07 +00:00
Brian Wellington
59d5cc31e5
#include <dns/types.h>
2001-06-01 01:09:10 +00:00
Brian Wellington
1969ab5360
copyright updates
2001-05-30 20:31:08 +00:00
Andreas Gustafsson
e7a4f58d55
833. [cleanup] Moved dns_soa_*() from <dns/journal.h> to
...
<dns/soa.h>, and extended them to support
all the integer-valued fields of the SOA RR.
2001-05-21 23:56:34 +00:00
Bob Halley
4e9d4ceadf
Take two of new semantics for ANY queries at zone cut points. Now doing
...
an ANY query at a zone cut point will return a delegation, except if
DNS_DBFIND_GLUEOK is set, in which case DNS_R_ZONECUT will be returned as
before. Someday it would probably be a good idea to get rid of DNS_R_ZONECUT
entirely and just return DNS_R_GLUE in that case, but I was afraid to do
that now since it might break things. These changes pass all system tests.
2001-05-15 05:35:27 +00:00
Bob Halley
751aa24c98
only return DNS_R_ZONECUT from secure zones
2001-05-14 19:25:59 +00:00
Brian Wellington
ecf4962155
more of 'rndc status'
2001-05-14 19:06:47 +00:00
Andreas Gustafsson
a9ef485446
If IXFR fails, fall back to AXFR
2001-05-10 17:51:49 +00:00
Brian Wellington
35582313f7
add dns_zt_zonecount(), which counts the number of zones in a zonetable.
2001-05-09 21:34:19 +00:00
Andreas Gustafsson
9dafd058e3
implemented 'rndc reconfig'
2001-05-07 23:34:24 +00:00
Andreas Gustafsson
bdb60248c3
oops, removed the wrong declaration
2001-05-04 23:57:22 +00:00
Andreas Gustafsson
2788f21727
don't install the now-nonexistent <dns/namedconf.h>
2001-05-04 17:08:43 +00:00
Andreas Gustafsson
af46049567
removed <dns/namedconf.h>, which pertained to the old
...
configuration parser
2001-05-02 17:39:51 +00:00
Andreas Gustafsson
1dbec28030
removed declarations of nonexistent functions
2001-04-30 18:09:31 +00:00
Andreas Gustafsson
e482a1c91e
cache dumps now include trust levels and ncache entries
2001-04-26 21:17:56 +00:00
Brian Wellington
c20ffa38de
808. [func] Add 'rndc flush' to flush the server's cache.
2001-04-11 20:37:50 +00:00
Brian Wellington
668f8d91db
795. [func] Add the +multiline option to dig.
...
(which requires dns_message_totext(), etc. to take a style parameter)
2001-03-28 02:42:56 +00:00
Andreas Gustafsson
bed7a35293
dns_master_questiontotext() needs a style argument after all
2001-03-28 00:58:15 +00:00
Andreas Gustafsson
531eafa302
use dns_master_rdatasettotext() &co; removed unused flag
...
DNS_MESSAGETEXTFLAG_OMITDOT
2001-03-28 00:50:05 +00:00
Andreas Gustafsson
421551db8a
new functions dns_master_rdatasettotext() and dns_master_questiontotext(),
...
replacing dns_rdataset_totext()
2001-03-28 00:22:16 +00:00
Brian Wellington
45e22378fc
dns_name_tofilenametext() now downcases the name, which means the callers
...
don't need to.
2001-03-27 23:43:15 +00:00
Brian Wellington
7d7215baf8
Add dns_name_tofilenametext(), and use it in the dnssec tools.
2001-03-27 22:57:48 +00:00
Brian Wellington
6eccf5bd07
788. [feature] Add the "match-mapped-addresses" options, which
...
causes IPv6 v4mapped addresses to be treated as
IPv4 addresses for the purpose of acl matching.
2001-03-26 21:33:07 +00:00
Brian Wellington
54d64c7994
782. [feature] Implement the serial-query-rate option.
2001-03-19 22:34:14 +00:00
Bob Halley
d911284333
add support for minimal-responses
2001-03-14 21:53:29 +00:00
Mark Andrews
a674e7ecec
add dns_dispatch_getlocaladdress().
2001-03-13 05:48:41 +00:00
Brian Wellington
461260ac15
add casts [RT #1017 ]
2001-03-12 22:27:15 +00:00
David Lawrence
31d3e8d2fe
new function, dns_dbiterator_setcleanmode(), which enables cleaning
...
in the rbtdb
2001-03-08 01:16:06 +00:00
David Lawrence
a09c545af1
join_nodes is removed; node joining is no longer done at any time, because
...
it corrupts active chains and can change the data at a node which
someone might be using. (In the latter case, though the full name from
the root was still intact, and the ->data member was not altered, other
values like the partial name ndata and offsets could change.)
New functions dns_rbt_fullnamefromnode() and dns_rbt_formatnodename(),
for getting a dns_name_t and filling a char buffer, respectively, with
the complete name of a node from the root.
rbtnode.is_root was being treated as isc_boolean_t even though it was bitfield
of width 1. This worked fine, but wasn't consistent with ISC style, and
would have puked if someone decided to change isc_true from 1 (unlikely
as that is). Yeah, anal, I know.
2001-03-08 01:08:39 +00:00
Brian Wellington
5ea0d11ca4
771. [cleanup] TSIG errors related to unsynchronized clocks
...
are logged better.
2001-03-07 20:53:32 +00:00
Brian Wellington
d25dd5b056
770. [func] Add the "edns yes_or_no" statement to the server
...
clause. [RT #524 ]
2001-03-06 23:54:37 +00:00
Mark Andrews
9ac7076eba
769. [func] Improved error reporting when parsing rdata. [RT #740 ]
...
Two new error codes. Also push back the last token, if it makes
sense to do so, so that it gets printed in the error message using
RETTOK macro, rather than straight return or RETERR.
2001-03-06 22:11:18 +00:00
Brian Wellington
438b80a31b
Remove the old configuration parser
2001-03-05 22:49:33 +00:00
Brian Wellington
e43b9a2005
move compression context create/delete into the caller of the message
...
rendering functions. This reduces the size of the message object.
2001-03-05 21:15:47 +00:00
Andreas Gustafsson
d1cc210d20
RT #927 fix from Bob:
...
759. [bug] The resolver didn't turn off "avoid fetches" mode
when restarting, possibly causing resolution
to fail when it should not. This bug only affected
platforms which support both IPv4 and IPv6. [RT #927 ]
758. [bug] The "avoid fetches" code did not treat negative
cache entries correctly, causing fetches that would
be useful to be avoided. This bug only affected
platforms which support both IPv4 and IPv6. [RT #927 ]
2001-02-28 20:51:22 +00:00
Mark Andrews
a93cf7e83b
756. [bug] dns_zone_load() could "return" success when no master
...
file was configured.
755. [bug] Fix format bugs in zone.c (non-exploitable).
2001-02-26 01:45:57 +00:00
Brian Wellington
542a74fcc4
comment update
2001-02-23 01:52:18 +00:00
Brian Wellington
6be1dc9d2a
Document the 'covers' parameter to dns_message_findname and
...
dns_message_findtype.
2001-02-21 18:32:27 +00:00
Bob Halley
1e50dad10d
When returning DNS_R_CNAME or DNS_R_DNAME as the result of an ANY or SIG
...
query, the resolver failed to setup the return event's rdatasets, causing an
assertion failure in the query code. [RT #881 ]
The fix includes the addition of the DNS_NAMEATTR_CHAINING attribute,
and the removal of the DNS_NAMEATTR_CNAME and DNS_NAMEATTR_DNAME attributes,
because they were not used anywhere in the current source.
2001-02-19 08:54:54 +00:00
Brian Wellington
c47ca47629
Remove the old rndc config parser.
2001-02-16 00:47:45 +00:00
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
Andreas Gustafsson
4831695ebe
no need to include <isc/netaddr.h> to get in_port_t; <isc/net.h> suffices
2000-06-01 16:40:23 +00:00
Brian Wellington
2321de58e5
Added #include <isc/netaddr.h>, since in_port_t wasn't defined.
2000-06-01 02:04:01 +00:00
Brian Wellington
7a97b7630f
dns_message_gettsig/getsig0 cleanup
2000-06-01 01:30:55 +00:00
Michael Graff
d98c74e2ec
set the default destination port in the view, and use it when returning addresses from the adb.
2000-06-01 00:30:58 +00:00
Brian Wellington
fe0e3c7707
Rename message->tsigset/querytsigset to tsig/querytsig.
2000-05-31 23:58:35 +00:00
Andreas Gustafsson
e6ec99f169
commented
2000-05-31 23:35:09 +00:00
James Brister
725a4773f5
Support also-notify and trusted-keys in a view statement.
...
Fixed error message when lexer couldn't open an input file.
2000-05-31 13:10:00 +00:00
Brian Wellington
0f80bfec68
The message code now has functions to manipulate TSIG and SIG(0), and the
...
callers use these functions. Also a lot of TSIG cleanup.
2000-05-30 23:14:57 +00:00
Andreas Gustafsson
7cd4c3ddd1
The 'cache-ttl' and 'ncache-ttl' options now work
2000-05-26 23:17:56 +00:00
Brian Wellington
af60263664
Added dns_tsigkey_attach & _detach, to simplify reference counting.
...
Added dns_message_get/settsigkey to deuglify tsig key handling in message code.
2000-05-26 00:16:46 +00:00
David Lawrence
82a30bf0a0
in dns_name_fromtext, REQUIRE() that the source buffer not have an
...
isc_buffer_remaininglength of 0. this finds problems like isc_buffer_init
not followed by isc_buffer_add much sooner.
also, enforce the already documented contract requirements of needing
a valid source buffer and either a valid target buffer or a name
with a dedicated buffer.
2000-05-25 23:57:25 +00:00
Andreas Gustafsson
c885fad9b8
Wired up the view-specific 'key' statement.
2000-05-25 22:06:51 +00:00
Andreas Gustafsson
c6cdf39bb2
Removed the function dns_zone_validate(). It was unused,
...
undocumented, marked XXX, and buggy (it contained a switch
statement that compared an rdclass to a set of zone types).
2000-05-25 21:13:39 +00:00
Andreas Gustafsson
e6aae9483e
removed code for hint, forward, and cache "zones" as those
...
no longer have zone objects associated with them
2000-05-25 21:07:43 +00:00
Andreas Gustafsson
c90b021ea3
renamed dns_zone_setnotifyalso() to dns_zone_setalsonotify(),
...
to be consistent with the name of the config file option
2000-05-25 15:34:26 +00:00
Brian Wellington
5d83b561ad
Added dns_tsigrcode_totext/fromtext
2000-05-25 00:46:32 +00:00
Michael Sawyer
c7868e2262
Modify dns_message_totext, dns_message_sectiontotext,
...
dns_message_pseudosectiontotext to use bitfields instead of flags
2000-05-24 18:17:53 +00:00
Brian Wellington
19d1b1667d
notify and zone soa queries are now tsig signed when appropriate.
2000-05-24 17:30:41 +00:00
David Lawrence
ed019cabc1
fixed lines > 79 columns wide
2000-05-24 05:10:00 +00:00
David Lawrence
94bd549175
updated comments with regards to chains and parent pointers, and added caveat
...
about what happens with "name" and "origin" parameters when a chain
points to ".".
2000-05-24 02:56:26 +00:00
Brian Wellington
41faaa9b35
If an incoming message contains a SIG(0), store the rdataset owner name
...
in the message structure, even though it should be the root. Also,
return this name in dns_message_getsig0().
2000-05-23 23:35:54 +00:00
Mark Andrews
00b67c06b9
Add contract notes for dns_requestmgr_{attach,detach}().
2000-05-23 00:11:45 +00:00
Michael Sawyer
1ed4ba5a1f
Add pseudosection printing, and dns_message_pseudosectiontotext().
2000-05-22 21:22:06 +00:00
Andreas Gustafsson
cd01c9716f
Reintroduced separate internal/external reference counts for zones,
...
reversing part of the changes made on 2000/05/17. Doing an explicit
zone shutdown on destruction of the zone table caused the zone to
be shut down prematurely on server reload when the zone table was
destroyed but the zone had already been attached to a new zone table.
An external reference count is needed to correctly handle this situation.
2000-05-22 17:23:15 +00:00
Mark Andrews
0103f42343
Add comment about requiring pointers to memory block to be NULL if the
...
corresponding length is 0, non-NULL otherwise.
2000-05-22 12:34:16 +00:00
Michael Graff
341323e0e7
move dns_db_getsoaserial() from journal.c to db.c
2000-05-20 01:32:03 +00:00
Michael Sawyer
9dca36b2ab
Remove unused no_rdata_or_ttl flag from message_totext and message_sectiontotest routines.
2000-05-20 01:29:58 +00:00
Michael Graff
46993e1d9d
Merge the mlg-20000518 branch onto the mainline. Change summary:
...
dns_dispatch_create() no longer exists. dns_dispatch_createtcp()
and dns_dispatch_getudp() are the replacements. _createtcp() takes
a bound, connected TCP socket, while _getudp() will search for
a sharable UDP socket, and if found, attach to it and return a
pointer to it. If one is not found, it will create a udp socket,
bind it to a supplied local address, and create a new dispatcher
around it.
dns_dispatch_remove{request,response}() no longer take the dispatch
as an argument.
query-source can now be set per view.
The dispatch manager holds onto three memory pools, one for
allocating dispatchers from, one for events, and one for
requests/replies. The free list on these pools is hard-coded,
but set to 1024. This keeps us from having to dig into the
isc_mem_t the pools draw from as often.
dns_resolver_create() and dns_view_createresolver() require that
valid dispatchers be passed in; dispatchers are no longer created
for the caller.
2000-05-19 21:46:46 +00:00
Brian Wellington
e49c834de8
Replaced dns_keynode_next by the more correct dns_keytable_findnextkeynode
2000-05-19 20:25:55 +00:00
Brian Wellington
ea14aa24aa
added dns_keynode_next
2000-05-19 18:38:27 +00:00
James Brister
8977ab7ca0
Zone configuration validation is now done at end of config file parsing,
...
and before loading callbacks.
2000-05-18 23:20:21 +00:00
Mark Andrews
59abb512d3
186 [func] dns_request_getresponse() has an additional arguement
...
'preserve_order'.
2000-05-18 02:59:20 +00:00
Brian Wellington
2ee24549b3
Added DNS_R_NOTINSECURE
2000-05-18 01:42:40 +00:00
Andreas Gustafsson
22608315e8
Fixed multiple shutdown cleanup bugs in the zone object. This
...
involved extensive restructuring of the reference counting of
zones and related objects.
Zones now attach to their views. To avoid a circular dependency that
would keep views from ever shutting down, this is done using the new
functions dns_view_weakattach() / dns_view_weakdetach() which
guarantee that the view will not be freed but still allow it
to be shut down.
The zones themselves now only have a single reference count, with
similar "weak" semantics. Managed zones must now be shut down
explicitly by calling dns_zone_shutdown(). To shut down all
zones in a zone table, call dns_zt_shutdown().
The zone manager is now reference counted, weakly. To shut down the
zone manager, you must explicitly call dns_zonemgr_shutdown().
2000-05-17 19:45:36 +00:00
David Lawrence
34b394b43e
DNS_R_RANGE -> ISC_R_RANGE
2000-05-15 21:14:38 +00:00
Michael Sawyer
c95a89b433
Added dns_message_sectiontotext() and dns_message_totext() functions.
2000-05-15 17:49:57 +00:00
James Brister
4932a54ed6
- options named.conf statement *must* now come before any zone or view
...
statements.
- Post-load of named.conf check verifies a slave zone has non-empty list
of masters defined.
- New per-zone boolean:
enable-zone yes | no ;
- intended to let a zone be disabled without having to comment out the
entire zone statement.
- New global and per-view option:
max-cache-ttl number
- New global and per-view option:
addition-data internal | minimal | maximal;
2000-05-15 12:36:33 +00:00
Andreas Gustafsson
f7d85bae58
Keep a queue of zones waiting for zone transfer quota so that a new
...
transfer can be dispatched immediately whenever quota becomes available
2000-05-14 20:01:34 +00:00
Andreas Gustafsson
7c74a7745d
comments for dns_zone_setmasters() and dns_zone_setnotify()
...
said they add to a list; this is no longer true, they now set the whole list
2000-05-13 17:54:37 +00:00
Andreas Gustafsson
e1f16346db
validator must not indicate a validation failure by returning
...
ISC_R_NOTFOUND as that seriously confuses query_find(). Introduced new
result codes DNS_R_NOVALIDSIG and DNS_R_NOVALIDNXT to use instead.
2000-05-12 21:25:17 +00:00
Mark Andrews
8adf1b9e74
Checkpoint ratelimiting refresh queries and notifies.
...
170. [cleanup] Remove inter server consistancy checks from zone,
these should return as a seperate module in 9.1.
dns_zone_checkservers(), dns_zone_checkparents(),
dns_zone_checkchildren(), dns_zone_checkglue().
Remove dns_zone_setadb(), dns_zone_setresolver(),
dns_zone_setrequestmgr() these should now be found
via the view.
2000-05-11 10:04:59 +00:00
Michael Graff
b9c8f4378a
Add address searching to dns_disptach_find().
2000-05-11 07:33:17 +00:00
Michael Graff
202ea9ccee
make magic numbers be the first things in the structures
2000-05-10 23:58:12 +00:00
Michael Graff
ca9739800f
implement dns_dispatchmgr_t, replacing dns_dispatchlist_t. Use it throughout the library/server.
2000-05-10 21:34:50 +00:00
Michael Graff
bc892aec31
implement _find()
2000-05-10 17:26:23 +00:00
Michael Graff
abf30e12ba
declare dns_dispatchlist_t here
2000-05-10 17:24:55 +00:00
Michael Graff
1cf2ee1ef0
snapshot; dispatch list stuff
2000-05-10 07:28:33 +00:00
Andreas Gustafsson
84fcfe530b
new logging module DNS_LOGMODULE_MASTERDUMP
2000-05-09 23:31:12 +00:00
Mark Andrews
8b61d20120
convert TRACE -> logging: ISC_LOG_DEBUG(3)
2000-05-09 05:12:49 +00:00
David Lawrence
1a69a1a78c
Megacommit of dozens of files.
...
Cleanup of redundant/useless header file inclusion.
ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
/*
* This is a comment.
*/
2000-05-08 14:38:29 +00:00
James Brister
65c9645ca7
Support new 'database' statement in zone.
...
database "quoted-string";
2000-05-06 10:18:48 +00:00
Andreas Gustafsson
a726ac16b3
updated comments
2000-05-05 00:18:16 +00:00
Michael Graff
c90f5e8d1e
Split dns_log_init() into dns_log_init() which sets up module and category names, and dns_log_setcontext() which sets the logging context. Call isc_log_setcontext(), dns_log_init(), and dns_log_setcontext().
2000-05-03 21:11:40 +00:00
Andreas Gustafsson
deb7afc49f
documented the 'covers' argument of dns_ncache_add()
2000-05-03 21:08:14 +00:00
James Brister
e2cf9c2db3
support 'disabled' statement in zone config (causes
...
zone to be parsed and then ignored). Currently must
come after the 'type' clause.
support optional ports in masters and also-notify
statements:
masters [ port xxx ] { y.y.y.y [ port zzz ] ; }
removed some unused arguments.
stop issuing some warnings about some features that
were not implemented, but now are.
2000-05-03 19:29:43 +00:00
David Lawrence
09f22ac5b0
Redundant header work, mostly removing <dns/result.h> from installed
...
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
David Lawrence
b09983678f
145. [cleanup] Added <isc/lang.h> and ISC_LANG_BEGINDECLS/
...
ISC_LANG_ENDDECLS to header files that had function
prototypes, and removed it from those that did not.
2000-05-01 17:59:10 +00:00
David Lawrence
4be63b1fd8
144. [cleanup] libdns header files too numerous to name were made
...
to conform to the same style for multiple inclusion
protection.
2000-04-29 02:02:38 +00:00
Andreas Gustafsson
014892d86d
added dns_rdatatype_isknown()
2000-04-29 01:49:37 +00:00
Michael Graff
20c266cbc9
add dispatcher logging functions
2000-04-29 00:45:26 +00:00
Mark Andrews
efd55ce62e
Add mctx comment for tostruct.
2000-04-28 23:18:01 +00:00
Mark Andrews
598b67856b
dns_zone_{set,get}masterport() is gone.
2000-04-28 17:18:23 +00:00
Bob Halley
80cff01698
rdata.h
2000-04-28 16:29:58 +00:00
Bob Halley
3ae5393d7e
Update contract of dns_name_rdatacompare to return < 0, 0, > 0 instead of
...
-1, 0, 1.
2000-04-28 16:29:48 +00:00
Mark Andrews
6c7e680943
115. [cleanup] libdns.a changes:
...
dns_zone_clearnotify() and dns_zone_addnotify()
are replaced by dns_zone_setnotifyalso().
dns_zone_clearmasters() and dns_zone_addmaster()
are replaced by dns_zone_setmasters().
2000-04-28 00:58:42 +00:00
David Lawrence
b3e7753518
108. [cleanup] DNS_SETBIT/DNS_GETBIT/DNS_CLEARBIT moved from
...
<dns/types.h> to <dns/bit.h> and renamed to
DNS_BIT_SET/DNS_BIT_GET/DNS_BIT_CLEAR.
2000-04-27 22:26:50 +00:00
Bob Halley
bcaf544581
add macros
2000-04-27 21:45:46 +00:00
Brian Wellington
9e842bb2d3
Allow dnssec verifications to ignore the validity period.
2000-04-27 18:09:10 +00:00
David Lawrence
6e49e91bd0
103. [func] libisc buffer API changes for <isc/buffer.h>:
...
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Bob Halley
048f38385e
change contract for value of order
2000-04-26 23:12:57 +00:00
Andreas Gustafsson
ad73ddc323
don't use 'new' as an identifier in installed
...
header files - it's a reserved word in C++
2000-04-26 01:01:23 +00:00
David Lawrence
8fedfa7b45
79. [cleanup] <dns/callbacks.h> does not need <stdio.h>.
2000-04-25 20:13:54 +00:00
David Lawrence
6d4b6f9d4b
added dns_c_ndcctx_getserver, minor style lint
2000-04-24 22:53:41 +00:00
David Lawrence
69d9d317ae
Add DNS_RBTFIND_NOOPTIONS to make it clear what the options parameter of
...
dns_rbt_find* is when no options are passed.
Add DNS_RBTFIND_NOPREDECESSOR to specify that the predecessor
searching code of dns_rbt_findnode should be skipped.
Much comment cleanup w.r.t. DNS_RBTFIND_* options.
2000-04-24 21:18:02 +00:00
Brian Wellington
ec371edc34
Add 'type' as a parameter to dns_validator_create()
2000-04-20 20:43:52 +00:00
Brian Wellington
e9a9ae4fc6
Added dns_trust_ultimate for zone data (can be renamed later if necessary).
2000-04-20 18:47:21 +00:00
Andreas Gustafsson
d1bdeae7bb
moved typedef of dns_zone_callbackarg_t from <dns/types.h> to
...
bin/tests/zone2_test.c; it's obsolete and zone2_test.c is the only
place using it
2000-04-20 17:39:02 +00:00
Michael Graff
5007a32191
use unsigned int for bitfields, not isc_boolean_t
2000-04-19 22:47:24 +00:00
Brian Wellington
767b4086b1
dns_dnssec_verifymessage updates
2000-04-19 20:57:55 +00:00
Bob Halley
dded35f92d
noexact support
2000-04-19 18:49:11 +00:00
Bob Halley
0a09237aa0
add noexact matching option
2000-04-19 18:21:24 +00:00
Brian Wellington
2e8e76e547
Added dns_keytable_finddeepestmatch()
2000-04-18 17:47:17 +00:00
Mark Andrews
9e53cbca72
Add UDP refresh queries.
...
Generate NOTIFY messages.
2000-04-18 11:43:46 +00:00
Mark Andrews
262e8ed36a
Add DNS_EVENT_VIEWREQSHUTDOWN
2000-04-18 08:36:20 +00:00
Mark Andrews
1a1a2ad3e8
add dns_resolver_dispatchv4(), dns_resolver_dispatchv6() and
...
dns_resolver_socketmgr().
2000-04-18 08:30:24 +00:00
Mark Andrews
9b8057fce9
Add dns_adb_attach().
2000-04-18 08:18:52 +00:00
Andreas Gustafsson
e3628581ae
say that sigrdataset may be NULL
2000-04-17 23:13:50 +00:00
Andreas Gustafsson
a7b62db9ca
commented validator API
2000-04-17 23:02:52 +00:00
Michael Graff
e44487bfc2
convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc.
2000-04-17 19:22:44 +00:00
Michael Graff
7ec579cd5d
Add functions to check that a type is only or is not allowed in a question section
2000-04-14 20:13:49 +00:00
Michael Graff
3bb3b7ac46
implement singleton type checking
2000-04-14 18:36:45 +00:00
Brian Wellington
53c892082e
Added dns_nxt_typepresent()
2000-04-13 18:08:07 +00:00
David Lawrence
d3c34e76d6
Stole one bit from node's 'attributes' bitfield for 'is_root' boolean.
...
Prototyped and documented dns_rbt_deletenode.
2000-04-12 21:27:49 +00:00
David Lawrence
567f3a25bc
do not include dns/rbt.h
2000-04-12 21:25:27 +00:00
Andreas Gustafsson
b4b4adc097
added convenience function dns_name_format() for use in formatting
...
log messages
2000-04-11 19:11:46 +00:00
Andreas Gustafsson
230bc05e7e
added DNS_LOGCATEGORY_DNSSEC and DNS_LOGMODULE_VALIDATOR
2000-04-11 18:17:35 +00:00
Andreas Gustafsson
edcb93b49c
wired up view options: request-ixfr, provide-ixfr
2000-04-07 22:30:43 +00:00
James Brister
6abdc5c090
Changes necessary to support server statements inside a view statement.
2000-04-07 17:40:43 +00:00
Brian Wellington
b80a8db9f9
Added DNS_EVENT_VALIDATORSTART
2000-04-07 17:15:35 +00:00
James Brister
616ee4a3f7
Changes to support keys inside views.
2000-04-07 13:35:06 +00:00
Michael Graff
6324997211
add attributes (line singleton, exlcusive, meta, etc) to rdata C files, and
...
build a table of them using gen.c. This means the names are stored twice,
but that will change in the near future. This will speed up number to text
conversions for rdatatypes, and I plan on speeding up text->number as
well, soon.
2000-04-07 03:54:52 +00:00
Andreas Gustafsson
a672bfbee4
wired up view options: allow-query, allow-recursion, allow-transfer
2000-04-06 23:59:19 +00:00
Michael Graff
4195904998
s/DNS_R_/ISC_R_/ change for some codes.
2000-04-06 22:03:35 +00:00
Michael Graff
c1a2cfef7f
s/DNS_R_/ISC_R_/ change for some codes. Mostly documentation in these files.
2000-04-06 20:59:29 +00:00
Andreas Gustafsson
66e2dd5001
wired up view options: recursion, auth-nxdomain, transfer-format
2000-04-06 20:25:48 +00:00
James Brister
a38ea1c635
Change some accessor names.
2000-04-06 20:13:07 +00:00
David Lawrence
5d4f11b265
The RBT now maintains a parent pointer at each node.
2000-04-06 18:47:07 +00:00
James Brister
3a49917729
Support new optional class on a view declaration.
2000-04-06 10:35:27 +00:00
James Brister
5e3d37f84a
Many new view-specific fields.
2000-04-06 09:50:13 +00:00
James Brister
03f18a3c14
Three new options fields: lame-ttl min-roots serial-queries.
2000-04-06 09:49:19 +00:00
Andreas Gustafsson
8c1616072e
previous commit was by mistake, backed out
2000-04-05 20:49:29 +00:00
Andreas Gustafsson
76ec142174
added 'matchclients' field
2000-04-05 20:45:36 +00:00
Andreas Gustafsson
afd4b04898
need <dns/aclconf.h>, <dns/confctx.h>, <dns/confzone.h>;
...
removed obsolete comment
2000-04-05 17:37:34 +00:00
Andreas Gustafsson
024eb50b65
must not include <config.h> in installed headers
2000-04-05 17:36:36 +00:00
Andreas Gustafsson
f79476e131
need <dns/confzone.h>
2000-04-05 17:35:56 +00:00
Andreas Gustafsson
8293999117
HEADERS contained obsolete header confserv.h and was missing
...
peer.h
2000-04-05 17:30:02 +00:00
James Brister
300115d413
Replaced with peer.c and peer.h
2000-04-05 17:20:45 +00:00
James Brister
14256bd72e
Removed include of config.h (illegal and unnecessary).
2000-04-05 16:38:01 +00:00
James Brister
ebafb8a02a
match-clients support
2000-04-05 15:29:53 +00:00
James Brister
64da53037f
Added misc 'unset' functions
2000-04-05 15:22:51 +00:00
Andreas Gustafsson
421f476fe8
requires <isc/stdtime.h>
2000-04-04 22:38:26 +00:00
Andreas Gustafsson
20abf4f676
ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS were
...
used needlessly and without including <isc/lang.h>
2000-04-04 21:25:36 +00:00
Andreas Gustafsson
c36e9ea3cd
no need to #include <isc/buffer.h>
2000-04-04 20:11:54 +00:00
Andreas Gustafsson
e6e674f6a5
no need to include <isc/ondestroy.h> from <isc/mem.h>
2000-04-04 20:06:29 +00:00
James Brister
f2af22c3e0
- Provide routine to check all zone definitions. Currently just looking
...
for allow-update and update-policy being used together. allow-update
definition is removed in this case.
- Provide zonelist iterator functions.
2000-03-30 17:21:16 +00:00
Bob Halley
18a4aa1dc8
Add dns_name_dupwithoffsets().
2000-03-30 00:57:23 +00:00
James Brister
3cfa5fedfe
Replace bit-setting method for determining if a config file field was set.
...
Templatized(?) code with macros.
2000-03-29 15:01:14 +00:00
Brian Wellington
5caab9f99d
TSIG and SIG(0) are no longer message pseudosections.
2000-03-29 01:32:22 +00:00
James Brister
da47a1b896
Removed listen-on from views.
...
Changed syntax of grant/deny statements so they now must be inside an
'update-policy' block.
quote rr types when printing grant/deny statements as they can
clash with config file keywords.
Added rcs Id inside comment.
2000-03-28 22:58:25 +00:00
Bob Halley
dda4bfe649
update copyrights
2000-03-23 19:52:19 +00:00
David Lawrence
ecb6c5782e
exorcized local compression
2000-03-23 05:18:46 +00:00
Andreas Gustafsson
5fe5a0c026
revised logging categories
2000-03-23 00:55:12 +00:00
Andreas Gustafsson
4bc5101166
wired up the new 'request-ixfr' option
2000-03-20 19:42:21 +00:00
Mark Andrews
afbc024820
Add DNS_R_USETCP.
2000-03-20 12:26:32 +00:00
Mark Andrews
48df229b7b
Add request/requestmgr support.
2000-03-20 12:25:48 +00:00
Mark Andrews
78da321b43
checkpoint
2000-03-20 12:22:02 +00:00
James Brister
5475a2d296
Support request-ixfr and provide-ixfr values in options and server
...
statements.
2000-03-19 02:58:15 +00:00
Bob Halley
7457bbd82f
secroots is now a keytable; add trustedkeys keytable
2000-03-17 00:00:18 +00:00
James Brister
c0536aa152
ndc config parser and test program
2000-03-15 02:11:57 +00:00
Michael Graff
ae8d0aedd6
implement pktinfo through dispatcher -> named client
2000-03-14 03:30:52 +00:00
Brian Wellington
f7fbd68b1c
added msg.verify_attempted, renamed msg.verify_sig0 to verify_sig
2000-03-13 19:27:35 +00:00
James Brister
0e858455d8
Make sure ssuauth table only goes in master zones.
2000-03-07 21:16:38 +00:00
Brian Wellington
6fcfd0c35d
ssutables are now attached/detached; zones get ssutables from config structs
2000-03-06 19:06:07 +00:00
James Brister
9ecccc109a
Code removal.
2000-03-02 20:43:16 +00:00
James Brister
e0c4b53b70
Add dns_ssutable_t to zone.
2000-03-02 20:42:56 +00:00
James Brister
10529b4cd4
Add peer and peerlist printing prototypes.
2000-03-02 20:42:32 +00:00
Brian Wellington
9c8bd3184c
commented the accessors/iterators
2000-03-02 16:04:41 +00:00
James Brister
f8b167ffb9
SUe strgings instead of dns_c_category_t.
...
Removed dns_c_logginglist_catbytype().
2000-03-02 04:00:00 +00:00
James Brister
c0d8bb424c
Use strings instead of dns_c_category_t.
2000-03-02 03:59:22 +00:00
James Brister
7716a94ffb
Drop prototypes of dns_c_category2string and dns_c_string2category.
...
Added dns_c_checkcategory prototype (checks string against predefined
category names).
2000-03-02 03:58:50 +00:00
Brian Wellington
2fabf91e5b
Added a rule iterator and rule accessor functions
2000-03-01 23:28:31 +00:00
Brian Wellington
408ebaeec9
Added dns_ssurule_t
2000-03-01 23:27:15 +00:00
David Lawrence
edcd1247ad
isc_log_create now has three parameters, the additional one used to
...
return an isc_logconfig_t. isc_log_cretechannel and isc_log_usechannel
now take an isc_logconfig_t instead of an isc_log_t; this is to address
reconfiguration in a multithreaded environment.
isc_logconfig_create, isc_logconfig_get, isc_logconfig_use and
isc_logconfig_destroy were added to work with the new isc_logconfig_t type.
isc_logregister_categories and dns_log_init are now both void rather than
returning isc_result_t.
2000-02-26 19:57:02 +00:00
Bob Halley
453603c018
add dns_name_depth() and dns_name_splitatdepth()
2000-02-25 01:06:54 +00:00
Andreas Gustafsson
e01ecff4b1
Implemented the 'transfers' clause of the 'server' statement
...
> and the 'transfers-per-ns' option.
2000-02-25 00:52:11 +00:00
Bob Halley
e419f613d8
checkpoint
2000-02-24 22:40:55 +00:00
Andreas Gustafsson
6e70b15670
zones now know which view they are in
2000-02-24 21:40:54 +00:00
Andreas Gustafsson
03ccfda9ec
the view now has a peer list
2000-02-24 21:12:16 +00:00
Bob Halley
b91bbbcdb4
add ordering attributes
2000-02-24 21:07:28 +00:00
Bob Halley
435abcf2e2
add dns_message_renderreset()
2000-02-24 19:37:28 +00:00
Andreas Gustafsson
4777bac498
moved dns_peer_t and dns_peerlist_t typedefs to <dns/types.h>
2000-02-24 18:45:02 +00:00
James Brister
e323a667e0
Replace use of private config type user for server statement with new
...
dns_peer_t.
Support two forms of server key statement:
keys "blah";
keys { "foo" ; };
Non longer build confserv.c
2000-02-24 14:48:30 +00:00
James Brister
2cde028c51
New dns_peer_t type and its methods.
2000-02-24 14:39:27 +00:00
Bob Halley
856ddedea9
add validator done event
2000-02-24 00:22:54 +00:00
Bob Halley
e612c2d0b1
improve comment
2000-02-23 23:32:06 +00:00
Bob Halley
1f61ebeead
add keytag, keytable, and keynode types
2000-02-23 23:31:51 +00:00
Bob Halley
bf43fdafa3
add keytable, validator
2000-02-23 23:31:33 +00:00
Bob Halley
380466f49e
remove trusted key stuff
2000-02-23 23:30:29 +00:00
Bob Halley
7126c08a71
add request.h
2000-02-23 21:54:00 +00:00
Bob Halley
f919bf7227
add
2000-02-23 21:53:22 +00:00
Andreas Gustafsson
3eef7eaba0
renamed dns_acl_checkrequest() to ns_client_checkacl()
...
and moved it to bin/named/client.c to reflect the fact that it
implemented BIND ACL policy more than general-purpose library
functionality; resolve ACL defaults at configuration time
rather than when the ACL is evaluated
2000-02-22 21:24:24 +00:00
Bob Halley
ef1dabcd5c
add dns_validator_t
2000-02-19 00:11:56 +00:00
Bob Halley
f18f3c93e7
add dns_name_requiresedns()
2000-02-19 00:11:21 +00:00
Andreas Gustafsson
7e46d184d9
typo in comment
2000-02-16 22:33:47 +00:00
Brian Wellington
9fae7ff638
dns_zone_getssutable/dns_zone_setssutable
2000-02-16 16:37:55 +00:00
Michael Graff
69a7905cf3
return 'avoid_bitstring' in dns_adbaddrinfo_t. If non-zero, the timer hasn't expired.
...
This means we need to pass 'now' into dns_adb_findaddrinfo() as well, to filter
out timers that have expired.
2000-02-16 00:16:36 +00:00
Brian Wellington
99fa73cf4c
added ssu.h
2000-02-15 21:51:48 +00:00
Brian Wellington
55e001d7ba
added support for different pattern types. c file coming later
2000-02-15 20:16:09 +00:00
Brian Wellington
16a5aa9a57
add dns_ssutable_t
2000-02-15 19:53:18 +00:00
Andreas Gustafsson
fd0bc40a25
IP addresses in ACLs are now represented as
...
isc_netaddr_t, not isc_sockaddr_t
2000-02-15 19:53:05 +00:00
James Brister
b9b814893a
Add prototype for dns_c_ipmatchany_new().
2000-02-15 17:07:52 +00:00
James Brister
0b5d6a2091
Add dns_c_ipmatch_any to dns_c_ipmatch_type_t enum.
2000-02-15 17:06:58 +00:00
Brian Wellington
01d202be8f
*** empty log message ***
2000-02-14 21:00:38 +00:00
James Brister
d47b32d4b9
Add allow-update-forwarding support to zones.
2000-02-14 17:18:40 +00:00
James Brister
83be31d86d
Add allow-update-forwarding supprt to views.
2000-02-14 17:16:35 +00:00
James Brister
d549c37348
Support ondestroy notfication of databases.
2000-02-10 16:09:01 +00:00
Andreas Gustafsson
da0ecdd70c
zone shutdown rewritten to use separate internal/
...
external refcount and control event instead of onshutdown,
to fix bug where zone could be freed before being shut down
(RT #28 )
2000-02-10 01:12:15 +00:00
Andreas Gustafsson
a174757026
implemented the 'localhost' and 'localnets' ACLs
2000-02-09 22:59:40 +00:00
James Brister
e1eebec93e
Support query-source-v6 and transfer-source-v6
2000-02-09 16:51:34 +00:00
Bob Halley
a2f3208f7f
add DESTDIR support
2000-02-08 21:50:23 +00:00
Brian Wellington
6cac2e0f7a
dns_db_deleterdataset can now delete SIG sets.
2000-02-08 19:25:37 +00:00
Brian Wellington
ca5af3ab78
dns_buildnxt takes a ttl as a parameter, instead of using 3600.
2000-02-08 19:02:24 +00:00
Bob Halley
0a26ae650d
add missing .h files
2000-02-04 01:33:16 +00:00
Bob Halley
7d32c065c7
update copyright
2000-02-03 23:50:32 +00:00
Michael Graff
7a166c5c61
completely decouple the lwres library from libisc. Bad michael for using isc/int.h and isc/lang.h, bad Mark for adding isc/tring.h, isc/net.h, and a few others.
2000-02-03 01:28:52 +00:00
Michael Graff
ffd9f87970
s/IGNORELAME/RETURNLAME/g
2000-02-02 23:27:39 +00:00
Michael Graff
1a0e33bc20
implement DNS_ADBFIND_GLUEOK, DNS_ADBFIND_HINTOK, and DNS_ADBFIND_IGNORELAME
2000-02-02 23:24:04 +00:00
Brian Wellington
d2b77d720f
Added dns_name_matcheswildcard
2000-02-02 20:11:55 +00:00
Andreas Gustafsson
7b24a94d11
typo in comment
2000-02-02 00:41:26 +00:00
Andreas Gustafsson
d5017b061c
typo in comment
2000-02-02 00:38:28 +00:00
Andreas Gustafsson
62e22bc7a5
typos in comments
2000-02-02 00:36:34 +00:00
Andreas Gustafsson
9a1e183042
removed unnecessary #includes
2000-01-31 18:32:36 +00:00
Andreas Gustafsson
c718c8aa60
separate transfer-source addresses for IPv4 and IPv6
2000-01-31 18:00:07 +00:00
Mark Andrews
89ab345002
dns_zone_dump() -> dns_zone_dumptostream()
...
replace seperate iteration of zone in dns_zone_dumptostream() with call
to dns_master_dumptostream().
dns_zone_dume() now dumps to database specified in zone.
2000-01-31 02:11:50 +00:00
Mark Andrews
fb5363b897
dns_master_dumptostream() from static to public.
2000-01-31 01:51:26 +00:00
Andreas Gustafsson
a31e0ba97b
leading whitespace caused OSF/1 cpp to ignore #endif directive
2000-01-29 00:53:49 +00:00
James Brister
1549f02958
Zones now have a pointer to their owner view.
2000-01-29 00:04:50 +00:00
James Brister
93c69b1231
Several new fields added to views.
...
declarations of many new fields accessor/modifier functions.
2000-01-29 00:03:45 +00:00
James Brister
76861e034c
New functions declarations.
2000-01-29 00:02:28 +00:00
James Brister
4714bab9f2
Added also-notify and transfer-source options fields.
...
declarations for new accessors/modifiers.
2000-01-29 00:01:54 +00:00
James Brister
281a0c609d
Stripped some dead code.
...
Move typesdefs here from elsewhere to avoid circular include file
dependencies.
2000-01-29 00:00:42 +00:00
Andreas Gustafsson
897ba5e120
Abort incoming zone transfers on server shutdown. To support
...
this, zone transfers now use the zone's task, the zone holds a pointer
to any zone transfer in progress, and the zone now registers a shutdown
callback.
2000-01-28 23:48:58 +00:00
James Brister
c71fc7ffdd
Remove definition and use of dns_c_severity_t and replace with dns_severity_t.
2000-01-28 19:56:25 +00:00
Andreas Gustafsson
94a3e829e0
added "transfersin" quota variable in zone manager;
...
use dns_severity_t, not dns_c_severity_t to represent name checking
severities, to eliminate the final dependency on dns/config code
2000-01-27 19:44:49 +00:00
Andreas Gustafsson
ab0ce599ab
added dns_severity_t
2000-01-27 19:40:53 +00:00
Bob Halley
f91c2ae744
basic priming support
2000-01-27 02:55:47 +00:00
Bob Halley
42d6e0a1b8
allow the root hints to be built from a file too
2000-01-27 01:55:46 +00:00
Andreas Gustafsson
143c2d39fa
configuration locking checkpoint
2000-01-27 01:00:16 +00:00
Andreas Gustafsson
a820cd51ec
removed 'pubkey' from the zone object; if we decide it is
...
actually needed, it should be restored but as a dns_pubkey_t,
not dns_c_pubkey_t.
2000-01-27 00:44:56 +00:00
Bob Halley
0df20c101e
add v6 dispatcher and options to resolver creation routine
2000-01-26 16:57:48 +00:00
Bob Halley
64e829fffb
allow db adds to be forced
2000-01-25 19:26:45 +00:00
Brian Wellington
fb01226bcd
- generated TSIG keys can expire
...
- TKEY actually uses class ANY now
2000-01-24 22:22:51 +00:00
Brian Wellington
7d86ce8dfc
More TKEY updates and fixes...
2000-01-24 20:19:53 +00:00
Andreas Gustafsson
f93d33e24f
separated BIND specific configuration code from rest
...
of TSIG/TKEY code; renamed TSIG/TKEY context create and destroy functions for
consistency with rest of library
2000-01-24 19:14:26 +00:00
Andreas Gustafsson
389cb82bb5
removed unnecessary #include <isc/lex.h>
2000-01-24 18:14:30 +00:00
Brian Wellington
b6666e61dc
More TSIG/TKEY minor fixes (including a few more plugged memory leaks)
2000-01-22 04:45:17 +00:00
Bob Halley
29fe07c7a4
Move to DNS namespace. Add ISC_LANG stuff.
2000-01-22 02:36:15 +00:00
Andreas Gustafsson
8f16e457f7
dns_rootns_create() is now in libdns
2000-01-22 01:59:02 +00:00
Andreas Gustafsson
2680c1bb61
log master file loading errors through the logging subsystem
...
by default
2000-01-22 01:38:58 +00:00
Andreas Gustafsson
036df8a12d
exit server if loading a zone fails during initial startup
...
(but not if it fails during a subsequent reload)
2000-01-22 01:36:34 +00:00
Brian Wellington
b984520acc
major TSIG/TKEY cleanup
2000-01-21 20:18:41 +00:00
Andreas Gustafsson
4380033dc4
dns_zone_manage() has been superseded by dns_zonemgr_managezone();
...
made dns_zone_manage() static so that it cannot be called by mistake
2000-01-21 19:52:03 +00:00
Andreas Gustafsson
6889d57aab
don't needlessly destroy and recreate zones when doing minor reconfigurations
2000-01-21 19:22:35 +00:00
Andreas Gustafsson
395130717a
dns_zone_setorigin() now takes a dns_name_t *, not a char *
2000-01-21 19:21:14 +00:00
Bob Halley
4abed3e356
CNAME/DNAME chaining (initial support; A6 still missing)
2000-01-21 02:50:27 +00:00
Bob Halley
f53e43c37f
add DNS_R_ALIAS
2000-01-21 02:48:42 +00:00
Bob Halley
46cfdf4977
cancelfetch and destroyfetch no longer take a resolver argument
2000-01-21 02:47:38 +00:00
Andreas Gustafsson
d9a28c4a0d
remove needless #includes
2000-01-20 01:14:33 +00:00
Andreas Gustafsson
070d058606
#include <dns/zt.h> in view.c, not view.h
2000-01-20 00:46:45 +00:00
Andreas Gustafsson
564e88f79e
#include <dns/zone.h> in zt.c, not zt.h
2000-01-20 00:45:56 +00:00
Andreas Gustafsson
ea80934b58
make sure zone manager is not destroyed until tasks have finished;
...
eliminated 'soaquery' struct
2000-01-19 22:01:57 +00:00
Bob Halley
78eeb67d6c
more documentation
2000-01-18 19:17:04 +00:00
Bob Halley
87837577a1
improve documentation
2000-01-18 19:10:39 +00:00
Bob Halley
c8e15d5c18
remove byaddr from event
2000-01-18 19:07:27 +00:00
Bob Halley
e8e4cccb4c
domain and nameservers arguments to createfetch are now optional
2000-01-18 02:49:03 +00:00
James Brister
6ca3b786b4
Support new 'tcp-clients' and 'recursive-clients' statements.
2000-01-17 14:41:24 +00:00
Bob Halley
72e7662efe
nonworking checkpoint
2000-01-15 00:48:49 +00:00
Bob Halley
8f5df5f1fe
What used to be dns_view_find() is now dns_view_simplefind().
...
There's now a new dns_view_find() that will return DNS_R_CNAME and DNS_R_DNAME.
Also, both find routines now also return DNS_R_NXDOMAIN and DNS_R_NXRRSET
so that callers can tell whether or not a fetch might be useful.
2000-01-15 00:47:45 +00:00
Bob Halley
16804ba3b7
fix some inaccuracies in the documentation of dns_view_find()
2000-01-14 23:55:26 +00:00
Andreas Gustafsson
7693d4de8f
added dns_acl_any(), dns_acl_none()
2000-01-13 23:38:55 +00:00
Bob Halley
4e3b64c9a4
update list of installed .h files
2000-01-12 23:24:00 +00:00
Andreas Gustafsson
eb37a8ce9e
headers should not include themselves
2000-01-12 22:22:50 +00:00
Bob Halley
70b4d10569
add byaddr support
2000-01-12 20:05:41 +00:00
Bob Halley
34347e0844
add byaddr skeleton
2000-01-12 20:05:15 +00:00
Bob Halley
a44c12b332
add dns_adb_findaddrinfo() and dns_adb_freeaddrinfo()
2000-01-12 03:00:33 +00:00
Bob Halley
7c2fd18a36
support freezing; basic forwarding
2000-01-12 02:59:48 +00:00
Bob Halley
4226a822e8
add dns_fwdpolicy_t
2000-01-12 02:59:21 +00:00
Michael Graff
0941f35ad9
Start moving the dispatcher code to allow it to be used for wire format as well as for lightweight resolver daemon stuff.
2000-01-07 01:17:47 +00:00
Michael Graff
0fd03d2a66
fix up comments
2000-01-06 23:07:21 +00:00
James Brister
ce38a4c8d0
Use in_port_t instead of short.
2000-01-06 16:15:29 +00:00
Bob Halley
24a2d84aed
add DNS_ADBFIND_STARTATROOT
2000-01-06 00:56:37 +00:00
Andreas Gustafsson
ffa15cef7f
document the fact that dns_acl_match now always succeeds
2000-01-04 21:45:08 +00:00
Michael Graff
3ddd814a97
dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break.
1999-12-23 00:09:04 +00:00
Andreas Gustafsson
9b0e18da3d
dns_result_t/isc_result_t unification
1999-12-22 17:37:31 +00:00
Michael Graff
733b16eb0b
priority rendering
1999-12-22 03:22:59 +00:00
Mark Andrews
9ac1456101
A fix comments to match reality.
1999-12-21 00:34:44 +00:00
James Brister
e0c873ebc7
Declare new function dns_c_checkconfig that's used in main parsing routine.
1999-12-17 18:34:16 +00:00
Andreas Gustafsson
8f79820c69
wired up the 'cleaning-interval' config option
1999-12-17 01:02:49 +00:00
Michael Graff
59602a4485
set DNS_RDATASETATTR_TTLADJUSTED when the ttl's for rdata don't match
1999-12-17 00:21:38 +00:00
Andreas Gustafsson
6017f424ee
introducing dns_acl_t; other restructuring of server
...
configuration process aiming to reduce the degree of mutual dependency
between lib/dns/config and the rest of libdns
1999-12-16 23:11:07 +00:00
Michael Graff
607dc8013a
make dispatcher hash sizes be primes, and provide an increment to help
...
resolve hash collisions
1999-12-15 17:14:52 +00:00
Mark Andrews
271154eafd
dns_message_reply(): copy the question section of notify messages.
1999-12-15 07:28:51 +00:00
Bob Halley
4a3ad0da97
IPv6 query flood suppression
1999-12-14 00:10:06 +00:00
Mark Andrews
76a8dfb307
Add idle and max xfer timeouts.
1999-12-13 06:39:39 +00:00
Mark Andrews
2ea83bcfe5
Stub zones do not transfer out.
...
Master zones do transfer out.
1999-12-13 05:24:13 +00:00
Mark Andrews
8436cbc6a4
Connect zone transfers to refresh timers.
...
Various logging changes.
Add dns_zone_getclass().
Added locking to zonemgr.
1999-12-13 03:04:55 +00:00
Mark Andrews
0b87eaccdb
Add callback when xfrin completes/fails.
...
Perform a SOA serial upto date check when IXFR attempt fails.
1999-12-13 03:01:53 +00:00
James Brister
0b8e472452
Support new max-transfer-time-out, max-transfer-idle-in and
...
max-transfer-idle-out statements in options block and zone statements.
1999-12-11 13:44:46 +00:00
Andreas Gustafsson
5cee8302fc
dns_aml_checkrequest() now takes signer name, not message
1999-12-10 18:14:49 +00:00
Mark Andrews
bd1a878734
Update dns_name_fromregion to match reality.
1999-12-10 02:23:08 +00:00
Mark Andrews
6cefa82d9a
dns_journal_rollforward() now returns DNS_R_JOURNAL if the file does not exist.
1999-12-07 06:26:59 +00:00
Mark Andrews
3864eb0e9a
Add DNS_R_NOJOURNAL
1999-12-07 06:06:51 +00:00
James Brister
0e0be28c8b
Added some extra REQUIREs and fixed up some magic number handling.
1999-12-06 18:25:40 +00:00
James Brister
638434f6d3
Dead code removal.
1999-12-06 18:22:41 +00:00
James Brister
1ce5dcf1c8
Change config API to not take a isc_log_t but use dns_lctx extern.
1999-12-06 12:40:39 +00:00
Andreas Gustafsson
fd15c8e32e
Views now have a 'cache' field. The 'cachedb' field still
...
exists as a convenience shortcut / backwards compatibility thing.
1999-12-02 22:38:34 +00:00
Andreas Gustafsson
97404c1965
forward declare dns_cache_t in <dns/types.h>;
...
renamed dns_cache_getdb() to dns_cache_attachdb()
1999-12-02 22:35:01 +00:00
Andreas Gustafsson
d8574ceec6
forward declare dns_cache_t in <dns/types.h>
1999-12-02 22:34:32 +00:00
Andreas Gustafsson
1fd768aea9
changed arguments to dns_aml_checkrequest(); comments
1999-12-02 22:27:51 +00:00
James Brister
29bf8316a3
- Hold list of pubkeys instead of a single pubkey in zones.
...
- Change dns_zone_copy to use pubkey list.
- MAGIC-number related fixes and miscellaneous defensive programing issues.
1999-12-01 16:29:00 +00:00
Andreas Gustafsson
dac2799ea1
new source file aml.c, for address match list handling
1999-11-30 22:10:08 +00:00
Andreas Gustafsson
3f84bf884a
added DNS_LOGMODULE_AML
1999-11-30 22:04:56 +00:00
Andreas Gustafsson
f951f076f3
added cache code from late spring; it is not yet used
1999-11-29 17:58:39 +00:00
Andreas Gustafsson
8d6e7d47cf
added DNS_EVENT_CACHECLEAN
1999-11-28 21:18:02 +00:00
Bob Halley
82886629c4
dns_message_renderrelease() is now void
1999-11-25 01:58:28 +00:00
Bob Halley
2da97701c4
update comments
1999-11-25 00:08:15 +00:00
Bob Halley
b65c1b247f
add DNS_DBFIND_PENDINGOK support
1999-11-23 20:53:17 +00:00
Bob Halley
852a7a71c9
first try at comments
1999-11-23 20:45:56 +00:00
Bob Halley
66dfced5d1
keep track of now and the chain expiration time
1999-11-22 19:56:08 +00:00
Bob Halley
b80290952d
add shutdown and whenshutdown methods
1999-11-22 19:55:08 +00:00
Bob Halley
27d4efe5c8
cleanup; add view shutdown events
1999-11-22 19:54:23 +00:00
Bob Halley
205790a755
coordinated shutdown of resolver and adb
1999-11-22 19:53:51 +00:00
Michael Graff
42fe494186
Minor API change. The 'factor' now ranges from 0..10. See adb.h for details.
1999-11-19 00:30:13 +00:00
James Brister
292031c9fc
- Removed config *_delete functions on structures that use reference
...
counting and replaced with *_detach.
- Changed config *_attach functions to return the new attached value through
the paramater list rather than as a return value.
- Changed config *_delete functions to no longer allow deletion of a null
pointer
- Changed calls to the config *_delete functions to make sure no null
pointers were passed in.
- Changed use of the config *_attach function to match new signature.
1999-11-17 21:52:32 +00:00
Bob Halley
7a3010be81
add NOEDNS0 flag
1999-11-16 21:05:33 +00:00
Michael Graff
4f6dd51441
add dns_adb_changeflags()
1999-11-16 06:53:29 +00:00
Brian Wellington
31b6349dbb
added dns_tkey_destroy
1999-11-05 16:53:24 +00:00
Bob Halley
28ab8277a0
create adb list types
1999-11-05 09:49:53 +00:00
Mark Andrews
6314cd3338
Support $TTL w/ BIND 8 format
...
dns_ttl_fromtext() to return DNS_R_BADTTL not DNS_R_SYNTAX.
1999-11-04 01:21:28 +00:00
Brian Wellington
5c688a008a
A bit of SIG(0) cleanup
1999-11-02 22:58:29 +00:00
Brian Wellington
0b764d91c9
- updates to dns_message_signer to handle SIG(0) as well as TSIG
...
- SIG(0)'s can be rendered, and information is stored to allow them to be
verified after parsing. This needs some cleanup work done.
1999-11-02 19:59:04 +00:00
Brian Wellington
322b0fb39d
added DNS_R_NOIDENTITY
1999-11-02 19:57:13 +00:00
Brian Wellington
d598338952
Added the concept of a signature's identity - either from a SIG(0) key, a
...
statically configureed TSIG key, or the creator or a generated TSIG key.
1999-11-02 19:55:45 +00:00
Brian Wellington
0a1c6f36c8
preliminary SIG(0) support
1999-11-02 19:53:41 +00:00
James Brister
e42197260c
Support forward and forwarders values inside master, slave and stub zones.
1999-11-02 15:49:44 +00:00
Mark Andrews
9088094680
Add read support for BIND 8 TTL / counter format to soa.
...
Move bind_ttl to ttl.c and rename dns_ttl_fromtext and dns_counter_fromtext,
fix bug in handling of seconds (x 1 not x 60), can also handle raw number.
1999-11-02 13:07:53 +00:00
James Brister
3f8c638594
Support rfc2308-type1 options statement.
1999-11-02 09:13:48 +00:00
Brian Wellington
73af6575e0
Added DNS_R_NOTVERIFIEDYET
1999-11-01 22:54:26 +00:00
Michael Graff
4281fe4a80
dead/needs_poke are flags for adbnames, merge in Bob's changes
1999-10-30 01:58:02 +00:00
Andreas Gustafsson
81ae5e1ae6
added xfer_in/xfer_out categories and modules
1999-10-29 22:37:47 +00:00
Michael Graff
cfec676d09
define module adb
1999-10-29 22:28:35 +00:00
Michael Graff
c803787146
replace all instances of 'handle' with 'find' since that's what they are now.
1999-10-29 18:30:48 +00:00
Michael Graff
2992344aac
dns_adbhandle_t -> dns_adbfind_t
1999-10-29 18:07:32 +00:00
Michael Graff
897c9ddb4d
implement dns_adb_cancelfind(), rename _done() to _destroyfind(), and _lookup to _createfind()
1999-10-29 18:00:31 +00:00
James Brister
0c357624ee
kdeflist functions added
1999-10-29 16:00:13 +00:00
Brian Wellington
ffdcf33647
TSIG uses the new kdeflist accessor, other assorted TSIG/TKEY config updates
1999-10-29 13:56:56 +00:00
Mark Andrews
fe37278859
in6_addr.s6_addr is *always* an array.
1999-10-29 06:36:05 +00:00
Mark Andrews
d1ee833efb
remove extraneous commas
1999-10-29 05:12:24 +00:00
Bob Halley
7b4dcbb89b
add DNS_R_WAIT
1999-10-29 03:31:13 +00:00
Andreas Gustafsson
a474ba139d
enabled incoming zone transfer code; there are no SOA
...
queries yet, so we just do an unconditional transfer attempt at server
startup time for each slave zone
1999-10-29 02:41:56 +00:00
Andreas Gustafsson
81ce556e02
moved xfrin.c from bin/named to lib/dns by repository copy
1999-10-29 02:12:01 +00:00
Michael Graff
d43c2cc7bc
private links are plink, public links are publink
1999-10-29 01:53:20 +00:00
Michael Graff
ff9bb3fc54
more v4/v6 splitting out
1999-10-29 01:26:45 +00:00
Andreas Gustafsson
71a16ee135
checkpoint, introducing new type dns_zonemgr_t
1999-10-29 00:46:53 +00:00
Michael Graff
1f90c10828
start on ipv6 bits
1999-10-28 21:50:27 +00:00
Michael Graff
d4d2a13916
add plink
1999-10-28 20:09:51 +00:00
Bob Halley
726290e9d5
add adb
1999-10-28 19:52:10 +00:00
Bob Halley
29228e4aff
move adb typedefs to types.h
1999-10-28 19:51:54 +00:00
Brian Wellington
06f9d6486e
dns_message_signer update
1999-10-28 14:18:52 +00:00
Brian Wellington
e5c7544550
dns_message_signer
1999-10-27 22:25:55 +00:00
Michael Graff
2bcb48cfca
adb does fetches for A records now. Has a memory leak still.
1999-10-27 22:24:40 +00:00
Brian Wellington
e552b98037
- TSIG keys are created from the config structures
...
- TSIG key initialization cleanup
1999-10-27 19:59:34 +00:00
Michael Graff
1c3bc66ada
snapshot; nearly all fetch infrastructure is in place.
1999-10-27 19:36:58 +00:00
Mark Andrews
c31c447853
Update usage comments
1999-10-27 05:55:03 +00:00
Mark Andrews
412e2345a7
Add a FILE * arguement to dns_journal_print() and dns_diff_print().
1999-10-27 05:53:59 +00:00
Bob Halley
08f8af2a42
add dns_view_findzonecut()
1999-10-27 00:43:56 +00:00
Bob Halley
c5a031ab2c
add dns_rdatalist_init()
1999-10-27 00:43:43 +00:00
Andreas Gustafsson
61ba96e2f9
added DNS_LOGMODULE_JOURNAL
1999-10-27 00:30:28 +00:00
Brian Wellington
f879d3ee27
- Return the generated key from dns_tkey_processdhresponse
...
- Check for NOERROR in dns_tkey_process*
1999-10-26 21:57:53 +00:00
Brian Wellington
a413f94248
invalid tkey result code
1999-10-26 19:30:23 +00:00
Brian Wellington
d864d899d7
tkey snapshot
1999-10-26 15:39:59 +00:00
James Brister
01fa4e3634
Removed tkey from server statement.
...
Added integer argument to tkey options value.
1999-10-26 15:25:38 +00:00
Mark Andrews
7d9cb86e80
Add stop on error flag to dns_zt_apply.
1999-10-26 02:29:49 +00:00
Michael Graff
fc4fe6e5e6
start on name expiration times
1999-10-26 00:16:36 +00:00
Michael Graff
3ac63b4720
start on cleanup timer/task
1999-10-25 22:53:15 +00:00
Michael Graff
fbcf7bc351
fix, take II
1999-10-25 21:40:56 +00:00
Michael Graff
11efdeb076
fix
1999-10-25 21:39:08 +00:00
Bob Halley
8d298aca1c
suppress glue in most cache retrievals; get rid of NXGLUE
1999-10-25 21:19:02 +00:00
Bob Halley
e1c4942037
add glue trust level
1999-10-25 21:18:39 +00:00
Bob Halley
2cbedda69e
get rid of NXGLUE
1999-10-25 21:17:54 +00:00
Brian Wellington
77434343cb
added dns_tsigerror_badname from tkey-01
1999-10-25 21:17:11 +00:00
Brian Wellington
ac335315cd
add generated flag to tsig key
1999-10-25 20:55:31 +00:00
Bob Halley
bad8294771
add const to filename args
1999-10-25 18:42:09 +00:00
Mark Andrews
936f1c128f
add log context to dns_zone_copy()
...
fix various locking problems in zone.
1999-10-25 13:44:53 +00:00
Mark Andrews
ad61b7e789
add prototype dns_zt_apply()
1999-10-25 13:32:52 +00:00
Mark Andrews
0358d65e07
add prototype dns_view_load()
1999-10-25 13:31:18 +00:00
Mark Andrews
76771c089c
Add prototype for dns_zt_print().
1999-10-25 11:23:06 +00:00
Mark Andrews
70f6053bd1
Add DNS_LOGMODULE_ZONE
1999-10-25 11:21:03 +00:00
James Brister
6f9fbf8b48
Prototypes for tkey-domain and tkey-dhkey related functions.
1999-10-25 10:04:18 +00:00
Bob Halley
2c2cda0045
add resolver category and module
1999-10-22 19:33:13 +00:00
Michael Graff
a385f150bb
fix shutdown routines. The adb will go away at the right time, now.
1999-10-22 05:19:42 +00:00
Michael Graff
e45d323a2a
s/address/adb/
1999-10-22 01:02:38 +00:00
Michael Graff
93a916d8b9
rename address.[ch] to adb.[ch] -- files moved via repository copy
1999-10-22 00:59:30 +00:00
Bob Halley
9acbfdb6a2
add dns_db_findzonecut()
1999-10-21 17:50:36 +00:00
Michael Graff
29f28fe573
database lookups
1999-10-21 01:18:06 +00:00
Michael Graff
f181f94ec8
snapshot
1999-10-20 23:26:06 +00:00
Bob Halley
1646ae97bc
add dns_resolver_cancelfetch
1999-10-20 01:57:05 +00:00
Michael Graff
beb2b4f196
Allow the srtt value to be adjusted, and update the goodness and srtt when they are modified
1999-10-19 22:21:27 +00:00
Michael Graff
ca924f706b
Add a way to adjust goodness.
1999-10-19 22:06:08 +00:00
Michael Graff
f00d96a15c
make lameness work, now. Grr.
1999-10-19 21:28:09 +00:00
Michael Graff
f36a81c884
Add the API to allow marking an address as lame for a zone
1999-10-19 21:10:29 +00:00
Michael Graff
d8590892d1
Add code to check for a lame zone, and to expire lame entries as needed.
1999-10-19 20:55:04 +00:00
Brian Wellington
15660bccc1
Lock the reference count and deleted flags in a tsig key
1999-10-19 15:34:39 +00:00
Michael Graff
30251e07d1
snapshot ; external and internal reference counts are separated out,
...
and everything but fetches work.
1999-10-19 01:37:22 +00:00
Bob Halley
2d47cd4aa2
add CHAINING attribute
1999-10-17 19:23:14 +00:00
Bob Halley
345a84c9f1
add dns_name_print
1999-10-17 19:22:50 +00:00
David Lawrence
92712379fc
Updated documentation for chains, level_matches and level_count.
...
Updated documentation for dns_rbt_findnode to describe more what
happens with various return values, and that the chain points to the
DNSSEC predecessor for all non-error returns.
New documentation for dns_rbtnodechain_{prev,next}.
Updated documentation for other dns_rbtnodechain_*.
1999-10-16 20:34:52 +00:00
James Brister
80bd254851
Updated use of magic numbers.
1999-10-16 01:34:30 +00:00
Michael Graff
86944a4c80
snapshot; everything works other than fetches and database lookups.
1999-10-16 00:38:21 +00:00
Michael Graff
baf8179150
use DNS_EVENT_ADBNAMEDELETED to indicate a name was pulled out from under a request.
1999-10-16 00:37:55 +00:00
Bob Halley
cd02757774
add negative caching result codes
1999-10-15 20:49:33 +00:00
Bob Halley
e7dbdb2547
cleanups; change viewlist find routine
1999-10-15 01:43:39 +00:00
Bob Halley
f92876cfed
eliminate zone callback; export dns_zone_equal()
1999-10-15 01:36:41 +00:00
Bob Halley
3b9b3c21a7
add/renumber some attributes
1999-10-15 01:36:09 +00:00
Brian Wellington
77744ef575
Added tkey.h, which provides prototypes for the functions in the not-yet
...
added tkey.c. tkey.c needs some config help before it can be added.
1999-10-14 18:38:59 +00:00
Brian Wellington
1a2c699f0e
- suppress duplicate keys
...
- allow finding a key by name only (instead of name and algorithm)
- add creator field, which is filled in by TKEY
1999-10-14 18:35:25 +00:00
Mark Andrews
6f44af1c83
dns_view_create(): 'name' to (const char *) instead of (char *)
1999-10-14 06:00:55 +00:00
Mark Andrews
0b16ae54f7
add dns_view_findzone() declaration.
1999-10-14 05:06:01 +00:00
Mark Andrews
fd5fff738d
dns_zone_getdb nor returns DNS_R_NOTLOADED
1999-10-14 03:14:15 +00:00
Mark Andrews
659175b7d4
Add DNS_R_NOTLOADED.
1999-10-14 01:24:08 +00:00
Michael Graff
6d14fe95e9
snapshot: dns_adb_done() partial implementation, handles mostly work, but
...
no fetches are started yet.
1999-10-14 00:50:00 +00:00
Mark Andrews
f182ffaba7
dns_getname_origin nor returns (dns_name_t *) again.
1999-10-14 00:47:01 +00:00
Andreas Gustafsson
4dbbfeda13
replaced xfrin_test() by ns_xfrin_start()
1999-10-14 00:00:59 +00:00
Mark Andrews
3c962bd6d2
add dns_c_iplist_equal() declaration.
...
add dns_c_ipmatchelement_equal() declaration.
add dns_c_ipmatchlist_equal() declaration.
1999-10-13 22:18:49 +00:00
Mark Andrews
789df40199
add dns_c_pubkey_equal() declaration.
1999-10-13 22:17:22 +00:00
Mark Andrews
a0eb07c71a
Add dns_journal_print() declaration (debugging use only at this stage).
1999-10-13 22:16:31 +00:00
Mark Andrews
263a376eaa
Add dns_name_dynamic() declaration.
1999-10-13 22:15:15 +00:00
Mark Andrews
259ce22ab3
add dns_zone_callbackarg_t typedef
...
add dns_zt_t typedef
1999-10-13 22:13:55 +00:00
Mark Andrews
800b03baba
dbtable -> zonetable conversion.
...
add dns_view_addzone() declaration.
remove dns_view_addzonedb() declaration.
add dns_view_findinlist() declaration.
1999-10-13 22:12:24 +00:00
Mark Andrews
66912d1625
add dns_zone_callbackarg structure.
...
add dns_zone_getorigin() declaration.
update dns_zone_getdb() declaration.
add dns_zone_notify() declaration.
add dns_zone_replacedb() declaration.
1999-10-13 22:09:09 +00:00
Mark Andrews
b0526987ae
add declaration for dns_zt_load()
...
add function descriptions and contract details.
1999-10-13 22:04:18 +00:00
Andreas Gustafsson
8a7276e6ef
added event types DNS_EVENT_UPDATE and DNS_EVENT_UPDATEDONE for
...
use by dynamic update queueing
1999-10-13 18:11:19 +00:00
James Brister
66713b72dc
Added a dns_c_view_t to dns_zone_callback paramater list.
1999-10-13 18:00:46 +00:00
James Brister
9a6479b068
Added dns_c_view_getname.
1999-10-13 18:00:17 +00:00
James Brister
a7eb7752a7
Include the zone's view (or NULL) in the zone_callback paramater list.
1999-10-13 17:59:45 +00:00
Bob Halley
2621e791c3
add NCACHE attribute
1999-10-12 20:39:04 +00:00
David Lawrence
a7b730b8e9
updated comments to describe what a chain's level_count and level_matches
...
represent. point out that memory is only allocated for ancestors in a chain
when ancestor_maxitems > DNS_RBT_ANCESTORBLOCK.
miscellaneous other comment updates.
1999-10-12 14:16:27 +00:00
Bob Halley
084b422656
add attributes used by the resolver for caching
1999-10-11 19:17:38 +00:00
Bob Halley
a1ee8ac346
move rbt typedef to types.h; add trust levels
1999-10-11 19:15:37 +00:00
Bob Halley
e717473254
move rbt typedef to types.h
1999-10-11 19:15:23 +00:00
Bob Halley
00e7d7a0e8
Add DNSSEC security roots RBT
1999-10-11 19:13:17 +00:00
Brian Wellington
c0ddfabced
dns_dnssec_findzonekeys should use isc_result_t, not dns_result_t
1999-10-11 15:15:39 +00:00
James Brister
f7a00c14fd
Misc changes due to views
1999-10-10 17:16:07 +00:00
James Brister
df82fed5c2
Added confcache.h and confresolv.h
1999-10-10 17:13:40 +00:00
James Brister
95360399dc
Placeholders for future config file structures.
1999-10-10 17:09:37 +00:00
Michael Graff
439c0011e6
snapshot
1999-10-08 23:12:21 +00:00
David Lawrence
5e7e5134a9
dns_c_logginglist_addcategory() 4th arg is isc_boolean_t, not isc_boolean_t *
1999-10-08 22:55:33 +00:00
David Lawrence
e97301448d
no need for arpa/nameser.h
...
needs string.h to prototype frequent use of memset()
1999-10-08 22:52:59 +00:00
Brian Wellington
949d406b57
reference counting on TSIG keys. Necessary for TKEY delete
1999-10-08 20:14:47 +00:00
Brian Wellington
3f6dc1703f
tsig structure/function name change
1999-10-08 18:37:24 +00:00
Bob Halley
e3027d397f
resolver checkpoint
1999-10-07 19:41:16 +00:00
Bob Halley
63d1ef9e77
add DNS_R_DROP
1999-10-07 19:40:57 +00:00
Bob Halley
d1be0cf18b
add CD and AD
1999-10-05 22:11:58 +00:00
James Brister
4b6bf958f6
Use logging system
1999-10-02 21:23:49 +00:00
James Brister
249aa1914b
Added some config categories and modules
1999-10-02 21:14:11 +00:00
David Lawrence
a252c2771f
include isc/net.h, do not include sys/socket.h, netinet/in.h or arpa/inet.h,
...
and/or use type in_port_t instead of unsigned int for ports
1999-10-02 02:54:16 +00:00
Michael Graff
64828244e0
Many changes.
...
o added adb_test.c to test the functions already written.
o added code to delete names and all associated addresses.
o added a database dumper which will currently print the adb
in a human (or at least developer) readable format.
o found and fixed many twisted little locking issues.
1999-10-02 01:59:09 +00:00
Andreas Gustafsson
9b0d518110
moved dns_db_diff() from xfrin.c to journal.c; const correctness
1999-09-27 06:30:15 +00:00
Michael Graff
3c5148c4d9
add dns_adb_refresh()
1999-09-25 01:56:10 +00:00
Michael Graff
519b4a1a27
clean up public vs. private items
1999-09-25 01:44:41 +00:00
Michael Graff
0468b44003
use isc/magic.h
1999-09-25 01:25:06 +00:00
Andreas Gustafsson
71b4bbe284
added dns_zone_getorigin(), dns_zone_getdatabase(),
...
dns_zone_getixfrlog()
1999-09-24 05:57:54 +00:00
Bob Halley
3898056837
hints support
1999-09-24 01:40:50 +00:00
Bob Halley
d14b749789
add DNS_R_HINT
1999-09-24 01:40:15 +00:00
David Lawrence
fc80027fb5
logging interface & test program. not yet NT portable because of syslog.
1999-09-23 17:43:51 +00:00
Andreas Gustafsson
55243e5263
moved dns_zone_t typedef to <dns/types.h>
1999-09-23 10:45:06 +00:00
Andreas Gustafsson
89e7b5009b
added dns_zone_gettype() and dns_zone_gettask()
1999-09-23 06:42:10 +00:00
Michael Graff
ad3a5c4b7e
Start flushing out the address.c stuff
1999-09-23 00:43:10 +00:00
James Brister
d793dbd1b5
Config file view structures and their routines.
1999-09-22 21:20:10 +00:00
Bob Halley
7252b0d05c
dns_resolver_create(): remove rdclass, add view
1999-09-22 19:45:09 +00:00
Bob Halley
c56c5586b4
add dns_view_find(); add comments
1999-09-22 19:35:47 +00:00
Bob Halley
19f08273e2
api changes expected to be helpful when reconfiguring
1999-09-22 18:23:36 +00:00
Michael Graff
213973a334
adjust what points to what. You are lost in a maze of twisty little pointers,
...
all alike.
1999-09-22 01:01:14 +00:00
Bob Halley
152303bce0
update comment
1999-09-22 00:27:20 +00:00
Bob Halley
42e339f588
add function prototypes
1999-09-22 00:27:01 +00:00
Michael Graff
11fcc67616
snapshot address.[ch]
1999-09-22 00:26:20 +00:00
Michael Graff
66bd3b3c6b
Start on address.c
1999-09-21 22:46:42 +00:00
Michael Graff
9ec7000a15
Protect magic numbers and validity checks by putting them in our name space.
...
(Prefixed with DNS_)
1999-09-21 22:45:24 +00:00
Bob Halley
4e142a5bcc
start of ncache support
1999-09-21 20:41:20 +00:00
Bob Halley
7837d14621
add dns_rdataset_count()
1999-09-21 20:40:42 +00:00
Bob Halley
e5c243997c
Make a6 follower restartable.
1999-09-17 21:51:22 +00:00
James Brister
7c337a9ca9
IPv6 fixes.
...
Removed config specific address type and replced with isc_sockaddr_t
1999-09-17 14:22:06 +00:00
Mark Andrews
a86ce0b97d
Adjust function dns_zt_*() names to remove _zone, lookup -> find.
...
Add thread support.
1999-09-17 10:00:14 +00:00
Andreas Gustafsson
3ddd92da66
improved support for mnemonics in DNSSEC RR types
1999-09-17 09:25:21 +00:00
Michael Graff
5f0e2c8913
update copyright text
1999-09-16 00:02:20 +00:00
Michael Graff
2f072c2982
Update copyrights
1999-09-15 23:03:43 +00:00
Michael Graff
2808b5a3ef
reserve events for address.[ch]
1999-09-15 21:15:44 +00:00
Michael Graff
2a80dff9f2
no rcsid, thanks
1999-09-15 21:15:18 +00:00
Michael Graff
484e0cac08
Commit address.h -- soon to be the Address DataBase.
1999-09-15 21:14:59 +00:00
Mark Andrews
263f8b87e9
Initial implementation.
...
*not* yet thread safe.
1999-09-15 15:11:42 +00:00
Bob Halley
870288a1fa
DNS_R_NXGLUE
1999-09-13 18:27:26 +00:00
Michael Graff
d8f304288d
Use a memory pool for rdatasets as well
1999-09-11 01:35:55 +00:00
Brian Wellington
05b6b2e680
better error checking
1999-09-10 15:42:57 +00:00
Brian Wellington
c7f13217d1
TCP additions
1999-09-10 14:56:36 +00:00
Brian Wellington
8224be5129
more TSIG errors
1999-09-10 14:54:48 +00:00
Brian Wellington
24694ab18a
new fields needed for TCP-TSIG
1999-09-10 14:54:10 +00:00
Michael Graff
af6e7e5cd2
Changes to message.c/h to use memory pools for names. Coming soon:
...
same thing for rdata, rdatalist, and rdatasets.
Also implement dns_message_takebuffer().
See comments in message.h for news.
1999-09-10 02:48:32 +00:00
Mark Andrews
bada60fd2a
Non portable type used. u_int32_t -> isc_uint32_t
1999-09-09 23:25:51 +00:00
James Brister
26d88c4373
Fix decl for Digital Unix
1999-09-09 22:28:42 +00:00
Andreas Gustafsson
2813268985
added dns_dnssec_findzonekeys()
1999-09-09 08:28:23 +00:00
Andreas Gustafsson
3b6d32336c
created
1999-09-09 08:21:45 +00:00
Michael Graff
186817c92c
make dns_message_findtype() public
1999-09-09 01:10:53 +00:00