]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1841. [bug] "dig +nssearch" now makes a recursive query to
authorMark Andrews <marka@isc.org>
Thu, 31 Mar 2005 02:36:05 +0000 (02:36 +0000)
committerMark Andrews <marka@isc.org>
Thu, 31 Mar 2005 02:36:05 +0000 (02:36 +0000)
                        find the list of nameservers to query. [RT #13694]

CHANGES
bin/dig/dig.c
bin/dig/dighost.c
bin/dig/include/dig/dig.h

diff --git a/CHANGES b/CHANGES
index d5ec92842cc20bf481f2d44d73ff7ca5824ae983..80c72610f68540d9ef65b348caebe60ab860b617 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,8 @@
 1842.  [port]          cmsg_len() could produce incorrect results on
                        some platform. [RT #13744]
 
-1841.  [placeholder]   rt13694
+1841.  [bug]           "dig +nssearch" now makes a recursive query to
+                       find the list of nameservers to query. [RT #13694]
 
 1840.  [func]          dnssec-signzone can now randomize signature end times
                        (dnssec-signzone -j jitter). [RT #13609]
index 8ed35996e4e8bc6a237873298ddcf58c4990bfd9..d5f81a07f3780ce58ed1bfd957a48c8cd47b3407 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dig.c,v 1.200 2004/10/21 01:44:23 marka Exp $ */
+/* $Id: dig.c,v 1.201 2005/03/31 02:36:04 marka Exp $ */
 
 #include <config.h>
 #include <stdlib.h>
@@ -897,7 +897,7 @@ plus_option(char *option, isc_boolean_t is_batchfile,
                        lookup->ns_search_only = state;
                        if (state) {
                                lookup->trace_root = ISC_TRUE;
-                               lookup->recurse = ISC_FALSE;
+                               lookup->recurse = ISC_TRUE;
                                lookup->identify = ISC_TRUE;
                                lookup->stats = ISC_FALSE;
                                lookup->comments = ISC_FALSE;
index 01b4f9ae37e3acfafdc3a4d2270d395fd60d1104..1764b834f774d1509ad46b9bbd5187a937bdcde7 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.272 2004/11/22 23:29:09 marka Exp $ */
+/* $Id: dighost.c,v 1.273 2005/03/31 02:36:04 marka Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -1481,6 +1481,8 @@ followup_lookup(dns_message_t *msg, dig_query_t *query, dns_section_t section)
                                lookup->ns_search_only =
                                        query->lookup->ns_search_only;
                                lookup->trace_root = ISC_FALSE;
+                               if (lookup->ns_search_only)
+                                       lookup->recurse = ISC_FALSE;
                                dns_fixedname_init(&lookup->fdomain);
                                domain = dns_fixedname_name(&lookup->fdomain);
                                dns_name_copy(name, domain, NULL);
index efe0928f5d5edc1551acd0b329efc9b56dd9e457..8c55e883234902a6e4ac03af6a458b8f62428ea8 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dig.h,v 1.88 2004/10/21 01:44:24 marka Exp $ */
+/* $Id: dig.h,v 1.89 2005/03/31 02:36:05 marka Exp $ */
 
 #ifndef DIG_H
 #define DIG_H
@@ -35,7 +35,7 @@
 #include <isc/sockaddr.h>
 #include <isc/socket.h>
 
-#define MXSERV 6
+#define MXSERV 20
 #define MXNAME (DNS_NAME_MAXTEXT+1)
 #define MXRD 32
 #define BUFSIZE 512