Commit graph

1380 commits

Author SHA1 Message Date
Andreas Gustafsson
9bd874cb27 keysigner identified itself as keysettool in usage message 2000-05-12 21:09:53 +00:00
Andreas Gustafsson
259d8f9420 style 2000-05-12 21:06:58 +00:00
Michael Sawyer
9fe3676b84 Clean up command line parsing in dig.
Fix bug in nslookup interactive mode.
2000-05-12 18:45:38 +00:00
Michael Sawyer
6fe03d6c83 Code cleanup of dighost.c, hopefully making some of the flow of
command a bit more obvious.
Addition of TCP fallback on UDP failure.  Will add option to disable this.
Further work on nslookup.
(nslookup is not built by default now, and is far from fully functional.
Interactive mode currently segfaults.)
2000-05-12 01:02:37 +00:00
Andreas Gustafsson
fd9f6afdff use the UNUSED() macro 2000-05-11 22:47:00 +00:00
Andreas Gustafsson
949162ca40 in [84], after allowing access to a zone based on the view
allow-query ACL, subsequent accesses to the same zone were denied because
dbversion->queryok was not being set.  This caused mandatory glue to be
omitted from referral responses, ultimately causing lookups to fail if all
authoritative servers for the parent zone were running bind9.
2000-05-11 20:10:34 +00:00
David Lawrence
80150fb04a oh good lord. the casting problem is really truly fixed this time. mea culpa. 2000-05-11 15:36:20 +00:00
David Lawrence
24fe57b6da sorry, screwed up the cast in the last revision. cast a pointer to an int,
when i wanted to cast the int to unsigned then make a pointer.
2000-05-11 15:25:05 +00:00
Michael Graff
8648b6190d correct args to a function 2000-05-10 23:52:42 +00:00
Michael Graff
558ab0f6a8 adapt to the dispatch api changes 2000-05-10 23:43:48 +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
Andreas Gustafsson
42654cd6bb if keygen and signer are built by default, keysettool and keysigner
should be, too
2000-05-10 18:44:49 +00:00
David Lawrence
2ffe094fab fixed argument type mismatch in dns_c_logchan_getversions call 2000-05-10 18:38:21 +00:00
Olafur Gudmundsson
ff8d15be4e Fixed 3 bugs in keygen,
it overwrote old keys if new key key-id conflicted
	It was generating non null-keys with id==0
	It was not able to generate DSA null keys.
I changed size of maximum RSA key to 2048.
2000-05-10 17:57:53 +00:00
David Lawrence
f2fdfe7c42 Silence "end-of-loop condition not reached" warnings from Solaris compiler 2000-05-10 03:33:57 +00:00
David Lawrence
0cdff5948e file versions needs to be signed int, because ISC_LOG_ROLLNEVER is negative 2000-05-10 01:50:58 +00:00
David Lawrence
47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +00:00
Michael Sawyer
cefd68008f Host was broken in last commit; fixed here.
Add nslookup.c; non-functional and not compiled by make all.
2000-05-09 18:05:13 +00:00
David Lawrence
8a47ea1dad a few lingering (mem|str)(cmp|cpy|len) missing prototypes 2000-05-09 15:02:20 +00:00
Michael Sawyer
f17b62a64b Added +bufsize (EDNS0) option to dig
Added 1.2.3.4-> 4.3.2.1.in-addr.arpa translation to host
Added +defname, +aaonly, +cmd, +nostats, +qr flags to dig
Reviewed (and changed) result codes of dig.
2000-05-08 22:51:08 +00:00
David Lawrence
f675434978 return rather than exit from main() to shut up HP/UX 2000-05-08 20:12:46 +00:00
David Lawrence
8e591e2046 "do { ... } while (1)" to shut up HP/UX 2000-05-08 20:07:58 +00:00
David Lawrence
edf7c005be return(1) rather than exit(1) from main() to shut up HP/UX 2000-05-08 20:06:05 +00:00
David Lawrence
6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +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
David Lawrence
0e5b8234ba don't build sdig by default, now that a full-featured dig is available 2000-05-08 13:35:02 +00:00
David Lawrence
6245328332 build dig/host before bulding tests 2000-05-08 13:34:07 +00:00
Mark Andrews
c6ce77b4dc 155. [bug] ns_notify_start() was not detaching the found zone. 2000-05-08 07:26:37 +00:00
James Brister
65c9645ca7 Support new 'database' statement in zone.
database "quoted-string";
2000-05-06 10:18:48 +00:00
Michael Sawyer
6c7a2db63c Add +trace option, change some of the behavior of other options. 2000-05-06 01:16:07 +00:00
Andreas Gustafsson
2e6c976751 include severity level in log messages printed on stderr 2000-05-06 00:50:41 +00:00
Andreas Gustafsson
b4780360a4 log dns library warnings to stderr even when not verbose;
do not prefix stderr messages with time stamp
2000-05-06 00:48:53 +00:00
Andreas Gustafsson
01757e5311 added check for missing domain name argument 2000-05-05 19:55:56 +00:00
Andreas Gustafsson
e79be811b0 cannot use 'inline' in header files because <config.h> has
not been included yet to undefine it on platforms that do not support it
2000-05-05 18:22:16 +00:00
Andreas Gustafsson
f830ac6764 dns_name_fromwire:5 test expected dns_name_fromwire() to
detect unwanted compression but did not set the 'strict' flag
2000-05-05 17:48:57 +00:00
Michael Sawyer
c4ae16b2aa Change command line options for dig. In particular, +short option added,
so users can easily get (for example) SOA list from all authorative servers
with 'dig +short +nssearch isc.org soa' rather than stringing dozens of
options together.  (Rather these options remain or are removed in the
release version is still subject to discussion.)
2000-05-04 21:40:47 +00:00
Andreas Gustafsson
6d7909017d needs <dns/result.h> 2000-05-04 21:30:44 +00:00
Michael Sawyer
16d00613cf Fix bug in handling of batch files.
Changes to conform to standard coding style.
Internally reorder batch line options to properly handle @ options in
batch files.
2000-05-03 23:07:30 +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
Michael Sawyer
e69ccf6d54 Move recursive flag into lookup structure.
Fix bug in batch processing in host.
Add fixed origin code.
2000-05-03 20:27:13 +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
Andreas Gustafsson
6ba0a8a5e7 eliminated compiler warnings on alpha 2000-05-03 18:25:52 +00:00
Michael Sawyer
7949dbdae1 Add support for search list (from resolv.conf) to dig and host
Add support for ndots (from resolv.conf and command line) to dig and host
Add usage information
Add support for retrying UDP sends, with command line options to set
how many sends are allowed to dig and host
Add multiple option t dig, like -C on host
Add options in dig to enable and disable display of comment lines and
individual sections
2000-05-02 23:23:12 +00:00
Michael Graff
58ff88cca7 use 'flags' rather than 'attributes' and rename pkt->flags to pkt->pktflags 2000-05-02 18:46:44 +00:00
Andreas Gustafsson
7193a1762e suppress logging until UID switch to avoid creating log
files as root
2000-05-02 18:45:08 +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
5117e028b6 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:35:37 +00:00
Andreas Gustafsson
03384e7070 style 2000-05-02 01:16:21 +00:00
Michael Graff
ebff64a8bd add a ; after a goto label, since it needs a statement after it.
Brian should look at this section of code, since I believe it will leak
a reference to 'keyset'
2000-05-01 21:59:05 +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