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");