I have a bunch of services running on my LAN, mostly from a single Debian machine. I access them at URLs like http://devicename.lan:portnumber. I would like to change to http://servicename.devicename.lan.
How it works now: The router (openwrt) sets a static IP per device and the port number is selected by the application or system unit running it.
What is the absolute simplest way to accomplish this? I don’t mind if it is managed by the router or by the server machine itself. Hoping for something that can be configured with a text file or web interface or other basic mathod.
These sevices are private, just for me and I have no plans to ever access them externally. I have so far avoided any certificates or SSL or other stuff. I don’t use docker and would rather not get into it right now. I like my domain name setup how it is with fake local domains.
Hoping this could be possible without making a whole project out of it.


In OpenWRT, add an entry in DNSmasq under General - Addresses of
/myfakecomain.com/<serverIPAddressThis will make every variation of service.myfakedomain.com resolve to that address (assuming you have the hosts on your network obtaining DNS via the OpenWRT router).Then set up a reverse proxy on that server or whereever you’re directing that wildcard. If you have a lot of docker stacks on that machine, I’d suggest Traefik because you can just configure the compose files with the hostnames you want for that service, and it’ll update Traefik to redirect that hostname to that container. You can also add bespoke entries to Traefik for non-container services, or other services on your network to redirect towards.