Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 19ff2ba4e9513c692f03f152b5fcb7f0 > files > 62

bind-9.3.6-25.P1.el5_11.11.src.rpm

diff -up bind-9.3.6-P1/bin/dig/dighost.c.rh561299 bind-9.3.6-P1/bin/dig/dighost.c
--- bind-9.3.6-P1/bin/dig/dighost.c.rh561299	2010-08-10 13:39:52.000000000 +0200
+++ bind-9.3.6-P1/bin/dig/dighost.c	2010-08-10 13:40:41.157325901 +0200
@@ -999,7 +999,9 @@ setup_system(void) {
 		debug("timeout is %d.", timeout);
 	}
 
-	copy_server_list(lwconf, &server_list);
+	/* If user doesn't specify server use nameservers from resolv.conf. */
+	if (ISC_LIST_EMPTY(server_list))
+		copy_server_list(lwconf, &server_list);
 
 	/* If we don't find a nameserver fall back to localhost */
 	if (ISC_LIST_EMPTY(server_list)) {