From 8f9bffbc987a072b7d266011396726489ed92450 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 17 Aug 2011 10:00:44 +1200 Subject: Allow custom dnsmasq options so ppl can set SRV records and such for xmpp/kerberos --- etc/inc/services.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') 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}"); -- cgit v1.1