Correct the omission of the prefix when a dynamic interface v6 dhcpdv6 address is set as a static entry. The result is that only the suffix /64 gets added to the unbound host entries. This patch should sort that so a full address is created for unbound.

use existing call

update
This commit is contained in:
Martin Wasley 2021-02-19 13:02:10 +00:00 committed by Franco Fichtner
parent 4e3c6aa59b
commit be12dd889f

View File

@ -681,6 +681,13 @@ function unbound_add_host_entries()
continue;
}
// XXX - When using manual overide on dhcpd6 we need to get the prefix and marry it to the suffix
// Get the prefix first.
list ($ipaddrv6) = interfaces_primary_address6($dhcpif);
if (!empty($ipaddrv6)) {
$host['ipaddrv6'] = make_ipv6_64_address($ipaddrv6,$host['ipaddrv6']);
}
$domain = $config['system']['domain'];
// XXX: dhcpdv6 domain entries have been superseded by domainsearchlist,
// for backward compatibilty support both here.