summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/services.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index dfbda67..8659df9 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -154,8 +154,11 @@ EOPP;
}
/* is failover dns setup? */
- if (is_array($dhcpifconf['dnsserver']) && $dhcpifconf['dnsserver'][0] <> "" && $dhcpifconf['dnsserver'][1] <> "") {
- $dhcpdconf .= " option domain-name-servers " . join(",", $dhcpifconf['dnsserver']) . ";\n";
+ if (is_array($dhcpifconf['dnsserver']) && $dhcpifconf['dnsserver'][0] <> "") {
+ $dhcpdconf .= " option domain-name-servers {$dhcpifconf['dnsserver'][0]}";
+ if($dhcpifconf['dnsserver'][1] <> "")
+ $dhcpdconf .= ",{$dhcpifconf['dnsserver'][1]}";
+ $dhcpdconf .= "\n";
} else {
if (is_array($dhcpifconf['dnsserver']) && ($dhcpifconf['dnsserver'][0])) {
$dnscfg .= " option domain-name-servers " . join(",", $dhcpifconf['dnsserver']) . ";";
OpenPOWER on IntegriCloud