|
@@ -1425,14 +1425,31 @@ configure_nameservers(int force)
|
|
|
|
|
|
#define SET(k,v) evdns_base_set_option(the_evdns_base, (k), (v))
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (evdns_base_count_nameservers(the_evdns_base) == 1) {
|
|
|
- SET("max-timeouts:", "16");
|
|
|
- SET("timeout:", "10");
|
|
|
+ SET("max-timeouts:", "1000000");
|
|
|
+ SET("attempts:", "1");
|
|
|
} else {
|
|
|
SET("max-timeouts:", "3");
|
|
|
- SET("timeout:", "5");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ SET("max-inflight:", "8192");
|
|
|
+
|
|
|
+
|
|
|
+ SET("timeout:", "5");
|
|
|
+
|
|
|
if (options->ServerDNSRandomizeCase)
|
|
|
SET("randomize-case:", "1");
|
|
|
else
|