Commit Graph
880 Commits
Author SHA1 Message Date
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