2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

156 Commits

Author SHA1 Message Date
Michael Sawyer
04ab4ecb27 Remove name limits and counter from dig; there's no obvious way to count
names out of message_parse when PRESERVE_ORDER is set.
2000-11-08 00:47:18 +00:00
Michael Sawyer
5d20773abc Move generation of reverse lookups (blah.in-addr.arpa, etc...) names to
a common place.
2000-10-23 23:13:21 +00:00
Michael Sawyer
a7e1443598 Fix #ifdef's for OPT codes.
Fix hex_dump()
2000-10-20 05:03:31 +00:00
Michael Sawyer
233514c1da Add +besteffort option to dig (on by default) which will cause the
message parser to accept somewhat malformed packets.
2000-10-13 17:54:00 +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
Michael Sawyer
10e1788f9f Dig changes in response to RT321 (output formatting) 2000-09-29 23:42:15 +00:00
Michael Sawyer
2f96e6b9bb Change sense of +fail option to something more reasonable 2000-09-28 23:02:28 +00:00
Michael Sawyer
0dabedcca5 Add +fail option to try next server after a SERVFAIL
Fix some minor problems in some of the new option processing code.
Slight change in mem debugging
TODO changes
2000-09-25 23:10:00 +00:00
Mark Andrews
34fec86ca3 make next_token() shared. 2000-09-21 23:47:41 +00:00
Michael Sawyer
b8f9623df0 Remove isc_app_block() from dig's get_address(). 2000-09-21 23:02:34 +00:00
Michael Sawyer
f900be2190 Dig, et al:
When you have more than 1 nameserver to send queries to,
	send them one at a time with a 1 second wait between transmissions
	instead of just flooding them all out at once.

	Fix bug 348, nslookup crashing when server specified without server
2000-09-21 22:46:39 +00:00
Michael Sawyer
97beb7237b A couple of typos corrected
Improvement to host8 compatibility.
2000-09-13 00:27:27 +00:00
Michael Sawyer
f63a6079d3 Typo fixed
Add +ignore option
2000-09-13 00:03:28 +00:00
Brian Wellington
6d3f954c57 388. [func] host can now do reverse ipv6 lookups. 2000-08-14 19:11:05 +00:00
Andreas Gustafsson
e605e98f3e use DNS_NAME_MAXTEXT/DNS_NAME_FORMATSIZE 2000-08-09 00:09:36 +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
Michael Sawyer
082bc93d68 Various changes (mostly small) picked up in code review 2000-08-01 00:53:20 +00:00
Michael Sawyer
c3dee052d6 Remove unused variable from query structure 2000-07-27 19:06:12 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Michael Sawyer
8bf0f722f8 Count and possibly limit how many names and rr's in a xfr.
(Needed by GDIB folks)
2000-07-20 19:41:44 +00:00
Michael Sawyer
aa6054ec74 Clean up type and class code. (No more ugly istype() and isclass() functions)
Minor changes to timeout handling code.
Don't preload batch file.
2000-07-18 01:28:20 +00:00
Michael Sawyer
8cd54a7461 Lots of changes to the shutdown code. Get rid of the annoying "just exit"
method of shutting down.
Known bug: SIGINT while doing batch mode causes assertion.
2000-07-14 17:57:27 +00:00
Michael Sawyer
e715e01178 More code duplication removal and general cleanup
Slight change in +nssearch output formatting
2000-07-14 16:35:30 +00:00
Michael Sawyer
0840ae769a When doing multi-stage lookups (like +trace and +nss), don't wait for all
of the servers being queried to return results if we only need one of them.
2000-07-13 22:53:51 +00:00
Michael Sawyer
c5ec9b45bb Lots of duplicate code removed
+tcp mode bug fixed
2000-07-13 18:52:58 +00:00
Michael Sawyer
738310d8cf It's probably a bad idea to pre-allocate 64K buffers for each lookup as soon
as you read in the batch file.  Don't.
2000-07-13 01:22:38 +00:00
Brian Wellington
3ce3305278 Remove a race condition where the final event could be posted before
isc_app_run started.
2000-07-10 18:02:31 +00:00
Michael Sawyer
2386f92414 Change the default timeouts to 30 seconds.
Change the semantics of timeout under TCP mode.
(touch the interval every rcv'd packet, plus increase the timeout greatly
once in the XFR)
2000-07-10 17:25:59 +00:00
Michael Sawyer
38cf6e52ce Lots of style changes.
Clean up what appears to be a varient of the race condition, this one set
off in nslookup.
2000-07-05 23:28:32 +00:00
Andreas Gustafsson
24139527f3 lots of style changes; no functional change 2000-07-05 19:31:26 +00:00
Mark Andrews
b6747cf19d 302. [bug] MXNAME should be large enough to hold any legal domain
name in presentation format + terminating NULL.
2000-07-03 05:26:50 +00:00
Michael Sawyer
461bead53c Bufsize of 64K 2000-06-23 02:56:10 +00:00
Michael Sawyer
c9defbf4b9 Sort #includes 2000-06-21 17:48:32 +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
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
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
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
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
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
Michael Sawyer
6c7a2db63c Add +trace option, change some of the behavior of other options. 2000-05-06 01:16:07 +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
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
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