summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/services.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index a95e22a..f6fd5f6 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -613,6 +613,12 @@ function services_dnsmasq_configure() {
}
}
+ /* suppose that dnsmasq handles our domain and don't send
+ requests for our local domain to upstream servers */
+ if (!empty($config['system']['domain'])) {
+ $args .= sprintf(' --local=/%s/', $config['system']['domain']);
+ }
+
/* run dnsmasq */
mwexec("/usr/local/sbin/dnsmasq {$args}");
OpenPOWER on IntegriCloud