Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > ca8a6aab4bb282ce002816222bc5df04 > files > 48

bind-9.3.6-16.P1.el5_7.1.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)) {