summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/services.inc4
1 files changed, 4 insertions, 0 deletions
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";
OpenPOWER on IntegriCloud