Some clients (eg. printers) send a hostname with a trailing dot. Since the kea hook adds the hostname sent by the client verbatim (https://github.com/vyos/vyos-1x/blob/9171b2912a6adbe88de4eeacbcc83cea5c941e48/src/system/on-dhcp-event.sh#L61), the /etc/hosts entry might end up looking like this:
# dhcp-server-10.8.8.34 10.8.8.34 apc-basement..dhcp.chiller3.com
This value is added to recursor.vyos-hostsd.conf.lua verbatim also (https://github.com/vyos/vyos-1x/blob/9171b2912a6adbe88de4eeacbcc83cea5c941e48/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.j2#L8C1-L8C1). The double dots cause pdns-recursor to crash when restarted (or just not update if it's still running).
Jan 15 22:27:34 vyos pdns-recursor[4198]: msg="Encountered error reloading zones, keeping original data" error="Found . in wrong position in DNSName: apc-basement\\.\\.dhcp\\.chiller3\\.com" subsystem="config" level="0" prio="Error" tid="0" ts="1705375654.187"
Can the kea hook script be updated to strip trailing periods? (or some other form of normalization if that's more appropriate?)