2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 18:19:42 +00:00

374 Commits

Author SHA1 Message Date
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