I haven’t been able to find any definitive solution to this.
I’m combining several of my machines onto a single one, but would like to use aliases for the hostnames, on my local network.
The Pi has avahi on it, and dnsmasq, no bind9.
I want to avoid subdomains and multiple IP address.
Basically, it should work like this: any request made to the router for server1, server2, server3 – should go to server0. or to IP 192.168.1.100.
Reason: the music server has one local name, the home-assistant server a different name, the file server another one. Some IoT devices have been configured with a hostname instead of an IP.
Not really critical, just something nice to have, but I’ve spent already some time toying with both bind9 and dnsmasq with no results (the router doesn’t recognize the hostnames).
From my router I can only assign one hostname per IP (fritzbox).
I would like to keep avahi, if possible, some other services depend on it.