mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
dhcp: add dns resolver ip in bootp ACK; closes #483
This commit is contained in:
parent
4a598c88fa
commit
5f41efb99f
@ -627,7 +627,7 @@ EOPP;
|
||||
if (!empty($newzone['domain-name'])) {
|
||||
$newzone['dns-servers'] = $dhcpifconf['dnsserver'];
|
||||
}
|
||||
} elseif (isset($config['dnsmasq']['enable'])) {
|
||||
} elseif (isset($config['dnsmasq']['enable']) || isset($config['unbound']['enable'])) {
|
||||
$dnscfg .= " option domain-name-servers {$ifcfgip};";
|
||||
if ($newzone['domain-name'] && !empty($config['system']['dnsserver'][0])) {
|
||||
$newzone['dns-servers'] = $config['system']['dnsserver'];
|
||||
@ -1241,7 +1241,7 @@ EOD;
|
||||
|
||||
if (isset($dhcpv6ifconf['dnsserver'][0])) {
|
||||
$dnscfgv6 .= " option dhcp6.name-servers " . join(",", $dhcpv6ifconf['dnsserver']) . ";";
|
||||
} else if ((isset($config['dnsmasq']['enable'])) && (is_ipaddrv6($ifcfgipv6))) {
|
||||
} else if ((isset($config['dnsmasq']['enable']) || isset($config['unbound']['enable'])) && (is_ipaddrv6($ifcfgipv6))) {
|
||||
$dnscfgv6 .= " option dhcp6.name-servers {$ifcfgipv6};";
|
||||
} else if (is_array($syscfg['dnsserver']) && ($syscfg['dnsserver'][0])) {
|
||||
$dns_arrv6 = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user