From 333c2eb63d185c5eab7cbf5e9882fff91d733999 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 20 Feb 2020 17:39:23 +0100 Subject: [PATCH] re-add 'domain' to dhcpdv6 interface configuration 'domain' was removed in #3824 because it 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.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php index 9325baf4a..8e3fa967c 100644 --- a/src/www/services_dhcpv6.php +++ b/src/www/services_dhcpv6.php @@ -272,6 +272,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { if (!empty($pconfig['ntp2'])) { $dhcpdconf['ntpserver'][] = $pconfig['ntp2']; } + // set 'domain' to first entry of 'domainsearchlist' + // (used only for DNS registration of static mappings) + if (!empty($pconfig['domainsearchlist'])) { + $dhcpdconf['domain'] = $domain_array[0]; + } $dhcpdconf['numberoptions'] = $pconfig['numberoptions']; // copy structures back in @@ -558,7 +563,7 @@ if (isset($config['interfaces'][$if]['dhcpd6track6allowoverride'])) {