Yes, that’s what I’m saying. If you have static-host-mappings in and your clients are using your router as their DNS resovolver, it will look at static-host-mappings and return any results from there (/etc/hosts)
IMHO this is what the feature is designed for.
I have
set system static-host-mapping host-name radio.domain.com inet '192.168.0.5'
From a host on my LAN using my Vyos router as its DNS resolver
{6:33}~ ➭ ping radio.domain.com
PING radio.domain.com (192.168.0.5) 56(84) bytes of data.
64 bytes from micro.domain.com (192.168.0.5): icmp_seq=1 ttl=64 time=3.11 ms
64 bytes from micro.domain.com (192.168.0.5): icmp_seq=2 ttl=64 time=0.116 ms
^C
--- radio.domain.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.116/1.615/3.114/1.499 ms
I have 50 unique entires:
tim@ferrari:~$ show configuration commands | match static-host-mapping | match inet | count
50