summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-28 18:27:33 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-28 18:27:33 -0400
commit739b97d989dbd659df335bacd14cf0253ed629fe (patch)
tree160e6aca2a2b81c0ced22cca063c5e7d083acedb /etc
parent33bf18748123145d2ae06c189748dd14ccf0b014 (diff)
downloadpfsense-739b97d989dbd659df335bacd14cf0253ed629fe.zip
pfsense-739b97d989dbd659df335bacd14cf0253ed629fe.tar.gz
Use --all-servers:
--all-servers By default, when dnsmasq has more than one upstream server available, it will send queries to just one server. Setting this flag forces dnsmasq to send all queries to all available servers. The reply from the server which answers first will be returned to the original requestor.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc15
1 files changed, 7 insertions, 8 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index fb66393..ce3f367 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -592,16 +592,15 @@ function services_dnsmasq_configure() {
$args = "";
if (isset($config['dnsmasq']['regdhcp'])) {
-
$args .= " -l {$g['dhcpd_chroot_path']}/var/db/dhcpd.leases" .
" -s {$config['system']['domain']}";
}
- if (isset($config['dnsmasq']['domainoverrides']) && is_array($config['dnsmasq']['domainoverrides'])) {
- foreach($config['dnsmasq']['domainoverrides'] as $override) {
- $args .= ' --server=/' . $override['domain'] . '/' . $override['ip'];
- }
- }
+ if (isset($config['dnsmasq']['domainoverrides']) && is_array($config['dnsmasq']['domainoverrides'])) {
+ foreach($config['dnsmasq']['domainoverrides'] as $override) {
+ $args .= ' --server=/' . $override['domain'] . '/' . $override['ip'];
+ }
+ }
/* suppose that dnsmasq handles our domain and don't send
requests for our local domain to upstream servers */
@@ -610,7 +609,7 @@ function services_dnsmasq_configure() {
//}
/* run dnsmasq */
- mwexec("/usr/local/sbin/dnsmasq --cache-size=5000 {$args}");
+ mwexec("/usr/local/sbin/dnsmasq --all-servers --cache-size=5000 {$args}");
if ($g['booting'])
echo "done.\n";
@@ -1299,4 +1298,4 @@ function upnp_start() {
}
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud