summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index aad98e4..7779fde 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -90,7 +90,7 @@ function system_resolvconf_generate($dynupdate = false) {
if($syscfg['domain'])
$resolvconf = "domain {$syscfg['domain']}\n";
- if (!isset($config['system']['dnslocalhost']))
+ if (isset($config['dnsmasq']['enable']) && !isset($config['system']['dnslocalhost']))
$resolvconf .= "nameserver 127.0.0.1\n";
if (isset($syscfg['dnsallowoverride'])) {
OpenPOWER on IntegriCloud