DHCP client names misregistered in DNS forwarder

Version: VyOS 1.4-rolling-202105210417

I am using ‘set service dhcp-server hostfile-update’ to register the DHCP client names so I can resolve on the internal LAN.

It is working, however it’s creating names in /etc/hosts with the shared-network-name and an underscore prepended:

set service dhcp-server shared-network-name iotek subnet 192.168.1.0/24 static-mapping corsair ip-address '192.168.1.51'

cat /etc/hosts:

# dhcp-server-192.168.1.51
192.168.1.51    iotek_corsair.iotek.us 

On the DHCP-server service, try setting:

   host-decl-name
                Use host declaration name for forward DNS name

Aha, that fixed it, thanks! Not sure why you would want it the other way (with the underscore) …

I imagine it’s to avoid DNS collisions if you have duplicated host names across multiple networks.

Fair enough, thanks for the help!