]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
list servers that time out in dig +nssearch
authorEvan Hunt <each@isc.org>
Fri, 16 Feb 2018 00:11:52 +0000 (16:11 -0800)
committerEvan Hunt <each@isc.org>
Sat, 24 Feb 2018 18:56:09 +0000 (10:56 -0800)
bin/dig/dighost.c
doc/arm/notes.xml

index 96ba8e44ffa865fef81555b30e68fe38b7efe30d..508c620e67893b0afb34f27984395179ad54eab4 100644 (file)
@@ -2983,7 +2983,15 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
                        check_next_lookup(l);
                }
        } else {
-               if (!l->ns_search_only) {
+               if (l->ns_search_only) {
+                       isc_netaddr_t netaddr;
+                       char buf[ISC_NETADDR_FORMATSIZE];
+
+                       isc_netaddr_fromsockaddr(&netaddr, &query->sockaddr);
+                       isc_netaddr_format(&netaddr, buf, sizeof(buf));
+
+                       printf(";; no response from %s\n", buf);
+               } else {
                        fputs(l->cmdline, stdout);
                        printf(";; connection timed out; no servers could be "
                               "reached\n");
index b8c58fed88bba4a6f5510082239fd3039965553c..16cd062a383d79a0a095b1efa183a2bff477bb40 100644 (file)
          [RT #43670]
        </para>
       </listitem>
+      <listitem>
+       <para>
+         <command>dig +nssearch</command> will now list name servers
+         that have timed out, in addition to those that respond. [GL #64]
+       </para>
+      </listitem>
     </itemizedlist>
   </section>