Disclaimer: i know, my question is not OH related at all, but somehow i googled and seem to miss the right keyword. I put all my hopes into the tech knowhow of this great board
If have a FritzBox Cable as Router (and DNS server and “everything”) behind that i run a NUC with unbuntu called “openhab” as servername. I run openhab and several other things (nginx, monitorix) in docker there, having nginx as reverse proxy
However, since i called my server “openhab”, i have to configure my nginx reverse proxy to sub locations ( like /monitorix/)
I wish i could just have http://monitorix as a virtual host. NGINX wise, no problem.
But how do i tell the DNS on the FritzBox to resolv “monitorix” to the openhab server as well?
In case you find http://openab/monitorix pretty decent, since it is the monitorix for OH. True. My other usacase is, that i consider running squidguard as a proxy server. Doing so, i would want to autoconfig the proxy settings of all devices around. Fot that i would need WPAD as a servername to deliver autoconfigto the client. Renaming openhab to wpad is not wanted…
I know that I am not helping… but I would recommend deploying DNS & DHCP for your LAN on the Linux host running OH2 It’s not too hard and if you don’t want to mess with config files, take a look at webmin.
You can then add aliases on the DNS to point to the OH2 IP Address.
I don’t think that you can do much with the FritzBox DNS.
even if you succeed with this, this would apply only to the local linux host name resolutions. You won’t be able to resolve the extra aliases from another host on your LAN.
I am not sure that I got it…
You could setup your DHCP to assign both hosts (Linux + Fritz) for DNS entries (Linux primary and Fritz secondary) to the LAN clients. If NUC goes down, you will still be able to access the interweb (but won’t be able to resolve the custom aliases).
correct… but usually a linux (NUC) box is very reliable (and highly configurable). In theory, you would be running it 24/7 anyway.