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 static-mapping corsair ip-address ''

cat /etc/hosts:

# dhcp-server-    iotek_corsair.iotek.us 

On the DHCP-server service, try setting:

                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!