summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 1283ba1..58e3794 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -60,6 +60,16 @@ function system_resolvconf_generate($dynupdate = false) {
}
fclose($nfd);
}
+ $nfd = @fopen("{$g['varetc_path']}/defaultdomain.conf", "r");
+ if ($nfd and $havedns) {
+ while (!feof($nfd)) {
+ $dnss = trim(fgets($nfd));
+ if ($dnss) {
+ $resolvconf .= "search $dnss\n";
+ }
+ }
+ fclose($nfd);
+ }
}
if (!$havedns && is_array($syscfg['dnsserver'])) {
foreach ($syscfg['dnsserver'] as $ns) {
OpenPOWER on IntegriCloud