diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-28 18:27:33 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-28 18:27:33 -0400 |
commit | 739b97d989dbd659df335bacd14cf0253ed629fe (patch) | |
tree | 160e6aca2a2b81c0ced22cca063c5e7d083acedb /etc/inc/services.inc | |
parent | 33bf18748123145d2ae06c189748dd14ccf0b014 (diff) | |
download | pfsense-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/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 15 |
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 |