Hello,
sorry in advance, as I'm very not versed in the jargon, I hope this is still understandable...
I have a media server on a raspberry pi, running in a docker container. It can be reached with localhost:8096. I use traefik so that I can reach it with the more digestible 'media.local' hostname.
On the raspberry, this works no problem. Things gets hard when I want to make it so any device on the network can also access the media server webUI through media.local.
With avahi, I'm able to reach the raspberry pi as raspberrypi.local, and the media server with raspberrypi.local:8096. After a day of headache trying to make it so avahi also redirects media.local to my raspberry IP, I learned that it is not currently possible to have different aliases for the same local address in avahi. I could rename the raspberry pi hostname to media, but then that wouldn't work if I want another webui to be served at say 'other.local'.
Thus, I am looking for suggestions on how to do this. All I want to do is to be able to access the media server without specifying a specific port, and this from any device on the local network. One option is using the raspberry as a full-on DNS server, but I don't like to have to rely on the raspberry pi also for all other DNS requests.
Sorry if this is off-topic, and thanks for the help !