bind9/bin/dig
Aram Sargsyan 61def2f4e3 dig +nssearch: send more queries even if setting up one of them fails
In the NSSEARCH followup lookup, when one of the queries fails to be
set up (UDP) or connected (TCP), DiG doesn't start the next query.
This is a mistake, because in NSSEARCH mode the queries are independent
and DiG shouldn't stop the lookup process just because setting up (or
connecting to) one of the name servers returns an error code in the
`udp_ready()` or `tcp_connected()` callbacks.

Write a new `nssearch_next()` function which takes care of starting the
next query in NSSEARCH mode, so it can be used in several places without
code repetition.

Make sure that the `udp_ready()` and `tcp_connected()` functions call
`nssearch_next()` in case they won't be calling `send_udp()` and
`send_tcp()` respectively, because in that case the `send_done()`
callback, which usually does the job, won't be called.

Refactor `send_done()` to use the newly written `nssearch_next()`
function.
2022-07-22 09:37:05 +00:00
..
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.c Add missing plain HTTP options to dig's help output 2022-03-28 16:22:53 +03:00
dig.rst Add hyperlinks to dig/mdig/delv +options 2022-04-26 12:43:13 +02:00
dighost.c dig +nssearch: send more queries even if setting up one of them fails 2022-07-22 09:37:05 +00:00
dighost.h DiG: use the same retry and fail-over logic for different failure types 2022-07-22 08:35:35 +00:00
host.c Initialize printed buffer 2022-04-29 11:22:40 +10:00
host.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 10:46:36 +01:00
Makefile.am Move the include Makefile.tests to the bottom of Makefile.am(s) 2021-06-24 15:33:52 +02:00
nslookup.c Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:33:43 +01:00
nslookup.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 10:46:36 +01:00
readline.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00