Commit Graph
307 Commits
Author SHA1 Message Date
Brian Wellington e6743c1b25 Don't call get_address when processing "-b address". The address can't be a
host name, and if it's not a valid address, it would call isc_app_block()
and assert since isc_app_run() had not been called yet before calling the
resolver.  This could be seen by running:
	dig @localhost xbill.org -b 127.0.0.1:1111
which now exits with an error.
2001-02-17 20:27:24 +00:00
Andreas Gustafsson 1a77d17120 minor style fixes 2001-02-17 01:05:30 +00:00
Andreas Gustafsson 01254cbbd4 eliminate compiler warning 2001-02-17 00:41:03 +00:00
Brian Wellington ede71ac5d2 fix suspicious (yet correct) use of strncat() in get_address() [RT #863] 2001-02-16 00:04:18 +00:00
Brian Wellington f22ef00109 fix the potential buffer overflow in printgreeting() [RT #863] 2001-02-15 23:57:22 +00:00
Ben Cottrell d8dde7c9fb Style fixes per Andreas, functionality fixes per Michael Sawyer.
The printgreeting() stuff is fixed once and for all by the change
to clone_lookup... I think this is the "right" way of doing it.
2001-02-15 23:44:08 +00:00
Ben Cottrell 2caff6b7df Something that I thought was a win turned out to be a lose. I now no longer
even try to restore previous state when someone issues two conflicting
type options.
2001-02-14 01:46:03 +00:00
Andreas Gustafsson ff6e7b684a commented 2001-02-14 01:34:26 +00:00
Ben Cottrell 354f4f1ab2 Fixed RT #727 and #780. 2001-02-13 23:12:17 +00:00
Stephen Jacob 524222cfb8 Added purify support (${PURIFY} to link lines) to remaining
Makefile.in's in bin/*
2001-02-02 18:53:05 +00:00
Andreas Gustafsson b4876b6ddf simplify dig/host/nslookup code by using the _format() functions in
more places; fix spacing issues; make nslookup print debugging details
for all lookup results, not just those with rcode==0; add comments
2001-01-24 19:28:34 +00:00
Andreas Gustafsson 20b6f1e657 misc cleanup 2001-01-22 23:22:09 +00:00
Andreas Gustafsson 4b3e2a344f #ifdef in last change should have been #ifndef 2001-01-22 22:38:21 +00:00
Brian Wellington 703e1c0bb6 692. [bug] Deal with systems that have getaddrinfo() but not
gai_strerror(). [RT #679]
2001-01-18 22:21:31 +00:00
Andreas Gustafsson 688a4c50c2 More searchlist/domain handling fixes. Dig/host/nslookup no longer
have the notion that there can be both a search list and a default
domain at the same time.  The resolv.conf "domain" directive is now
used only if there is no "search" directive, and is treated exacly
like a one-element searchlist. The "+domain" option of dig and the
"set domain" command of nslookup are now merely ways of overriding the
resolv.conf search list.  Parents of the name given in the "domain"
directive are still not searched; this is considered a feature and is
consistent with lwres, but different from the BIND 8 resolver. The
"+defname" option to "dig" is now deprecated and treated as a synonym
for "+search"
2001-01-18 05:12:44 +00:00
Brian Wellington 01b8865b14 689. [doc] man pages are now installed. [RT #210] 2001-01-18 01:33:54 +00:00
Brian Wellington e56101fa68 consolidate duplicated code. 2001-01-17 02:21:51 +00:00
Brian Wellington 427f933ece use isc_app_block instead of an ugly hack. 2001-01-17 00:48:19 +00:00
Brian Wellington 66921d6dd2 685. [bug] nslookup should always use the search list/domain
options from resolv.conf, and it (and host) should use
                        the search list items first. [RT #405, #630]
2001-01-16 23:15:55 +00:00
Andreas Gustafsson 066cb385cd don't hardcode the magic constant 41 2001-01-16 19:13:10 +00:00
Andreas Gustafsson 93988fb202 use dns_name_format() in more places 2001-01-16 18:52:14 +00:00
Andreas Gustafsson 7ddb4c86a9 breaking out the SOA fields by calling dns_rdata_totext() and then
tokenizing the text representation is sick and demented
2001-01-16 18:39:38 +00:00
Mark Andrews be387fd057 682. [bug] nslookup diplayed SOA records incorrectly. [RT #665] 2001-01-16 07:28:11 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Andreas Gustafsson d405a8134b spacing 2001-01-08 23:50:34 +00:00
Andreas Gustafsson 812ed4efbb removed pointless cast 2001-01-08 23:45:57 +00:00
Andreas Gustafsson 10cd4cf39c several dynamic memory allocations used the size of the wrong structure
(which coincidentally had the same size as the right one)
2001-01-08 23:44:09 +00:00
Brian Wellington 93a6dd9d38 copy the origin in clone_lookup, not the truncation recovery code. 2001-01-08 23:40:29 +00:00
Brian Wellington c9629cce66 +defname should not be the default. 2001-01-08 23:38:37 +00:00
Brian Wellington 9b0e404e5f 666. [bug] If a request is longer than 512 bytes, send it using
TCP.
2001-01-08 20:50:04 +00:00
Brian Wellington a89b2f024c grammar 2001-01-08 19:50:32 +00:00
Michael Sawyer 3b5102fc01 654. [bug] Origin was being forgotten in TCP retries in dig.
[RT574]

 653.   [bug]           +defname option in dig was reversed in sense.  [RT549]
2001-01-04 18:19:18 +00:00
Brian Wellington 78838d3e0c 8 space -> tab conversion 2000-12-11 19:24:30 +00:00
Andreas Gustafsson 565ea7e0e7 array sizes in function argument types are meaningless
and should be avoided
2000-12-11 03:28:52 +00:00
Michael Sawyer fe3bcec776 Remove useless -h option (which nslookup8 didn't have anyway). 2000-12-08 18:25:54 +00:00
Michael Sawyer 8fa78d9ad5 CHANGES entry
typo fix.
2000-12-08 17:50:47 +00:00
Michael Sawyer cc7732e129 RT#528 fixed 2000-12-08 17:06:52 +00:00
Mark Andrews 6fda157766 ISC_LINK_*UNSAFE -> ISC_LINK_INITAND* 2000-12-07 20:15:58 +00:00
Michael Sawyer ee4429e13e 600. [bug] Reverse lookups sometimes failed in dig, etc... 2000-12-07 19:56:05 +00:00
David Lawrence 869f65bea4 made addlookup() void; its return value was not needed in any context 2000-12-06 22:38:49 +00:00
Andreas Gustafsson 33b66a98be more DNS_OPT_NEWCODES sanitation 2000-12-02 05:13:37 +00:00
Andreas Gustafsson 90ad126bb3 more DNS_OPT_NEWCODES sanitation 2000-12-02 04:44:51 +00:00
Andreas Gustafsson acb053cc54 references to named.conf statements should not include an empty
set of braces
2000-11-30 00:20:40 +00:00
Michael Sawyer ddba67ddb9 Allow user to specify more than ~65000 retries in dig. 2000-11-21 21:40:12 +00:00
Michael Sawyer 0c16c8a011 Make dig work in v4-less setups. This is largely untested, since I am not
sure where to find a machine without v4 networking.
2000-11-21 21:35:32 +00:00
Michael Sawyer 789145979d Add bounds checking to various dig options 2000-11-21 20:55:00 +00:00
Andreas Gustafsson 5160e38bde spacing 2000-11-21 20:52:24 +00:00
Michael Sawyer 2185dd4ac3 RT#470 2000-11-21 19:05:30 +00:00
Mark Andrews 25a66b4e41 #include <isc/print.h> 2000-11-20 13:02:18 +00:00
Brian Wellington cffe50abf6 Lots of copyright updates 2000-11-18 03:01:17 +00:00