diff options
author | Ermal <eri@pfsense.org> | 2011-08-12 11:46:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-12 11:47:12 +0000 |
commit | 6c86a39f8efc2906f53dafe57b304ed8b3241e84 (patch) | |
tree | 00885ffabe8c88272fb729943e075eb567192f34 /etc | |
parent | f61dc8e6d638949866fdcb61c05c9d5905a48a80 (diff) | |
download | pfsense-6c86a39f8efc2906f53dafe57b304ed8b3241e84.zip pfsense-6c86a39f8efc2906f53dafe57b304ed8b3241e84.tar.gz |
Allow disabling having localhost in resolv.conf. There are some special setups that might need this.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index c8f13d2..aad98e4 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -90,7 +90,8 @@ function system_resolvconf_generate($dynupdate = false) { if($syscfg['domain']) $resolvconf = "domain {$syscfg['domain']}\n"; - $resolvconf .= "nameserver 127.0.0.1\n"; + if (!isset($config['system']['dnslocalhost'])) + $resolvconf .= "nameserver 127.0.0.1\n"; if (isset($syscfg['dnsallowoverride'])) { /* get dynamically assigned DNS servers (if any) */ |