DHCP6 failure on hostname....

Started by Noci, March 20, 2023, 06:32:11 PM

Previous topic - Next topic
March 20, 2023, 06:32:11 PM Last Edit: March 20, 2023, 06:44:06 PM by Noci
using: dhcpv6 with a hostname: code  fails  with the following message...

/status_services.php: The command '/usr/local/sbin/dhcpd -6 -user dhcpd -group dhcpd -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid vlan013 vlan010 vlan012 vlan011 vlan014' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.4.3-P1 Copyright 2004-2022 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcpdv6.conf line 75: option definitions may not be scoped. option host-name code; ^ Configuration file errors encountered -- exiting If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting.'

Changing the hostname to 'codex' or 'cod' makes it restart.... except the node is named 'code'
That isn't a problem in the dhcpd where the config derives from.  Only hostnames are in " terminated strings in that config.
This doesn't work in OPNsense as " are illegal in the hostname.