summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorbrennen <brennen@ookla.com>2016-11-21 10:59:44 -0800
committerbrennen <brennen@ookla.com>2016-11-21 10:59:44 -0800
commit4a03838ea877a3a867b283ba85956795e769d563 (patch)
tree3380289c167bd255eee59328f9aa81f339e52f8e /scripts
parent3600f0b37a4a5f33ba3e9fbc8c42b40087bdf445 (diff)
downloadvyatta-cfg-system-4a03838ea877a3a867b283ba85956795e769d563.tar.gz
vyatta-cfg-system-4a03838ea877a3a867b283ba85956795e769d563.zip
Add flag for DNSmasq to query all dns servers.
This feature, when used properly, can massively increase DNS performance. See: http://ma.ttwagner.com/make-dns-fly-with-dnsmasq-all-servers/
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dns-forwarding/vyatta-dns-forwarding.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
index 46e038b5..807afa28 100755
--- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl
+++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
@@ -95,6 +95,10 @@ sub dnsforwarding_get_values {
$output .= "cache-size=$cache_size\n";
}
+ if (defined $query_all_servers) {
+ $output .= "all-servers\n";
+ }
+
if (defined $ignore_hosts_file) {
$output .= "no-hosts\n";
}