From bad77fc0aca53e560710eaa75b3de198d7edb8f3 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 21 Aug 2017 11:37:07 -0400 Subject: If the user chose to have DDNS Hostnames forced, respect that in the backend code for static map IPv6 hosts. Fixes #7324 --- src/etc/inc/services.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 41ec68c..79a12db 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1523,6 +1523,10 @@ EOD; $dhhostname = str_replace(" ", "_", $sm['hostname']); $dhhostname = str_replace(".", "_", $dhhostname); $dhcpdv6conf .= " option host-name {$dhhostname};\n"; + if (isset($dhcpv6ifconf['ddnsupdate']) && + isset($dhcpv6ifconf['ddnsforcehostname'])) { + $dhcpdv6conf .= " ddns-hostname \"{$dhhostname}\";\n"; + } } if ($sm['filename']) { $dhcpdv6conf .= " filename \"{$sm['filename']}\";\n"; -- cgit v1.1