diff options
author | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 10:00:44 +1200 |
---|---|---|
committer | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 10:02:11 +1200 |
commit | 8f9bffbc987a072b7d266011396726489ed92450 (patch) | |
tree | fda51022cb94b626dc33c0571cf35282d670ae35 /etc | |
parent | 2a319b4facc71c55e3b3943013300d9d5deacc79 (diff) | |
download | pfsense-8f9bffbc987a072b7d266011396726489ed92450.zip pfsense-8f9bffbc987a072b7d266011396726489ed92450.tar.gz |
Allow custom dnsmasq options so ppl can set SRV records and such for xmpp/kerberos
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 313ad69..af98232 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1122,6 +1122,12 @@ function services_dnsmasq_configure() { if(!isset($config['system']['webgui']['nodnsrebindcheck'])) $dns_rebind = "--rebind-localhost-ok --stop-dns-rebind"; + if ($config['dnsmasq']['custom_options']) { + $args = ''; + foreach (preg_split('/\s+/', $config['dnsmasq']['custom_options']) as $c) + $args .= "--$c "; + } + /* run dnsmasq */ mwexec("/usr/local/sbin/dnsmasq --local-ttl 1 --all-servers {$dns_rebind} --dns-forward-max=5000 --cache-size=10000 {$args}"); |