Revision 3b95d9ec
Added by Warren Baker over 11 years ago
etc/inc/system.inc | ||
---|---|---|
103 | 103 |
if($syscfg['domain']) |
104 | 104 |
$resolvconf = "domain {$syscfg['domain']}\n"; |
105 | 105 |
|
106 |
if (isset($config['dnsmasq']['enable']) && !isset($config['system']['dnslocalhost']))
|
|
106 |
if ((isset($config['dnsmasq']['enable']) || isset($config['unbound']['enable'])) && !isset($config['system']['dnslocalhost']))
|
|
107 | 107 |
$resolvconf .= "nameserver 127.0.0.1\n"; |
108 | 108 |
|
109 | 109 |
if (isset($syscfg['dnsallowoverride'])) { |
... | ... | |
126 | 126 |
} |
127 | 127 |
} |
128 | 128 |
|
129 |
// Add EDNS support |
|
130 |
if (isset($config['unbound']['enable']) && isset($config['unbound']['edns'])) |
|
131 |
$resolvconf .= "options edns0\n"; |
|
132 |
|
|
129 | 133 |
$dnslock = lock('resolvconf', LOCK_EX); |
130 | 134 |
|
131 | 135 |
$fd = fopen("{$g['varetc_path']}/resolv.conf", "w"); |
Also available in: Unified diff
Add EDNS support for to resolv.conf