Commit Graph
45 Commits
Author SHA1 Message Date
Michael Sawyer a414896ee9 +ad/+noad option conflicting with +additional/+noadditional option 2000-06-19 19:00:49 +00:00
Michael Sawyer 518c9fea58 Add ability to set AD and CD flags in outgoing query. 2000-06-16 18:00:05 +00:00
Michael Sawyer 960c8888f6 TSIG verification of xfr replies working now. 2000-06-07 00:13:57 +00:00
Michael Sawyer d62f922122 Fix segfault due to uninitialized variable 2000-06-06 23:06:25 +00:00
Michael Sawyer 910df0c767 Further attempts to make XFR's verify with TSIG keys. Still not
functional, and disabled in this checkin.
Added -debug and -memdebug command line options, to avoid having
to recompile every time these options are needed.
2000-06-06 22:50:44 +00:00
Michael Sawyer 47058d1726 Validate TSIG signatures on replies, *except* for xfr's.
Add Id string.
2000-06-06 18:49:06 +00:00
Michael Sawyer a5ed46c9fd Send TSIG signed queries with dig. This version requires all queries
from a single invocation of dig use the same key, and doesn't validate
replies yet.  Also, keys must be passed on the command line with the
-y option.  -k forthcoming.
2000-06-06 00:43:17 +00:00
Michael Sawyer d12ed0876f Add ixfr support to dig, as:
dig domain.nil. ixfr=12345
where 12345 is version you are ixrf'ing against
(testing still in progress of this option)
2000-06-02 18:45:33 +00:00
David Lawrence 7efc8c3f69 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.

Minor other ISC style cleanups.
2000-06-01 18:49:22 +00:00
Brian Wellington 83a44df0a1 include dns/name.h 2000-05-30 22:27:27 +00:00
Michael Sawyer cc88be4af1 Change global task variable to global_task
Remove unused globals
2000-05-26 22:03:00 +00:00
Michael Sawyer 36e4d8878c Clean up uninitialized variable bug 2000-05-25 17:24:57 +00:00
Michael Sawyer 6afdb1e5e4 Clean up some unused variables... 2000-05-25 00:01:30 +00:00
Michael Sawyer 0eb5cf7351 Fix lookup limit.
Fix non-closing of sockets when finished.
2000-05-24 23:39:30 +00:00
Michael Sawyer 17747cd5ee Clean up warnings I accidentally left in in previous commit.
Add resetting of lookup counter between different name searches.
2000-05-24 19:49:51 +00:00
Michael Sawyer 932b781b81 Modify dig to use message_*totext() routines. 2000-05-24 19:27:01 +00:00
David Lawrence b0ab096ce6 added missing prototype to show_usage().
added UNUSED(first) for when USEINITALWS is not defined.
use ISC_TF() when assigning a boolean value.
added missing spaces around assignment operators per ISC style.
2000-05-24 03:05:58 +00:00
Michael Sawyer 4e0dc7b50c Add option to bind to a specified address 2000-05-19 17:54:04 +00:00
Michael Sawyer 88e216c7b4 Remove duplicate printing of greeting message 2000-05-18 01:32:53 +00:00
Michael Sawyer b437fa469e Correct bug in batch file handling 2000-05-18 01:21:19 +00:00
Michael Sawyer df834113a3 Fix bug in dig's message printing. 2000-05-17 18:36:31 +00:00
Michael Sawyer 0cfdce899b Add +[np]cmd option 2000-05-16 18:54:40 +00:00
Michael Sawyer 844eaa56d6 Minor error in return codes fixed in dighost.c
Additional functionality to nslookup
2000-05-16 17:53:35 +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
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
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 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
Michael Sawyer 6c7a2db63c Add +trace option, change some of the behavior of other options. 2000-05-06 01:16:07 +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
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 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
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 Sawyer e01cfa577b Add +twiddle option for testing.
Fix up host resolution from resolv.conf.
2000-04-29 01:39:32 +00:00
Michael Sawyer 387a58e8c4 Cleanup of debugging messages. Cleanup of failure shutdown memory leaks.
Fix multiple sends when not needed.  Fix buffer length check failure
code.  Increase recv buffer size.
2000-04-29 00:12:56 +00:00
Michael Sawyer df5503799f Add -C (Check all SOA records on authorative servers) and -T (tcp) options
to host program.  Clean up some memory issues in dighost.c and dig.c.

Still need to track down memory issues on ^C cleanup.
2000-04-28 21:41:19 +00:00
Michael Sawyer 1d2f2d7c9a Improved formatting of #ifdef DEBUG messages (left out \n's when puts calls
were changed to fputs to stderr).
Fix memory leak when doing axfr's.
Improvements to host program; most options and types fully supported.
Add (currently non-functional) -C option to host to check all SOA's
on authorative servers.  (Will require some notable changes to dighost.c
to make this a functional option.)

Issues stil needing resolution:
	IPv6 queries are not currently sent.
	Memory leak on ^C while waiting for UDP recv or TCP connect.
	A few more dig options need supporting.
	Support IXFR under dig (and maybe host).
	Support signatures (TSIG) under dig (and maybe host).
2000-04-27 23:20:29 +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
Michael Sawyer d43730bbf2 Stylistic changes and inclusion of isc/print.h 2000-04-26 19:36:40 +00:00
Michael Sawyer 30eee5633c Change debugging messages in dig.c and dighost.c to use stderr.
Improve message if resolver host not found.
2000-04-26 18:58:31 +00:00
Michael Sawyer ebbfa36a62 Rearrange source files. dig.c/dighost.c builds dig binary, host.c/dighost.c
builds host binary.  Host does not presently work.
Add some additional command line options on dig.
2000-04-26 18:34:17 +00:00
David Lawrence e302d60c54 declaration ansified: free_lists() -> free_lists(void) 2000-04-25 19:14:14 +00:00
Michael Sawyer ae72c54ef1 Fixed bug introduced when TCP mode added.
Now supports AXFR.
2000-04-20 20:55:45 +00:00
Michael Sawyer cc5ea458fe Fixed accidental commit of Makefile instead of Makefile.in.
Added TCP mode to dig.  AXFR code partially written.
Merged into configure.in, bin/Makefile.in.
2000-04-20 19:09:11 +00:00
Michael Sawyer 07fffbc8c9 Initial entry for new dig code. Works with UDP mode only in this version. 2000-04-19 23:23:31 +00:00