From 49002d1bd708f46a37f65c43ed71b3ed306eefcc Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 20 Feb 2020 18:20:31 +0100 Subject: [PATCH] re-add 'domain' to dhcpdv6 static mappings 'domain' was replaced by 'domainsearchlist' in #3824 because 'domain' is not used by dhcpdv6. But it is used by unbound and dnsmasq for DNS registration of DHCP static mappings. Just set it to the first entry of the domain search list. --- src/www/services_dhcpv6_edit.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/www/services_dhcpv6_edit.php b/src/www/services_dhcpv6_edit.php index 362fc62fa..8e3d33b09 100644 --- a/src/www/services_dhcpv6_edit.php +++ b/src/www/services_dhcpv6_edit.php @@ -122,6 +122,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } } + // set 'domain' to first entry of 'domainsearchlist' + // (used only for DNS registration) + if (!empty($pconfig['domainsearchlist'])) { + $mapent['domain'] = $domain_array[0]; + } + if (isset($id)) { $config['dhcpdv6'][$if]['staticmap'][$id] = $mapent; } else { @@ -210,7 +216,9 @@ include("head.inc");