Say i dont want to type 192.168.1.100:8096 and want a url instead, say jellyfin.servername - how would I go about that? I don't want it exposed online via reverse proxy. I don't need certs. No port forwarding on the router.
How do I type 'jellyfin.servername' into a browser and being up the jellyfin dashboard?
If you have your own DNS server you can set a hostname there like 'jellyfin.myserver' and have that accessible from your internal network. If you want to do so on your PC you can edit your hosts file to add a custom entry. https://www.hostinger.com/tutorials/how-to-edit-hosts-file
Yeah, how and where? In the docker compose? I have a dozem containers and is love if they were all a.server. b.server, c.server.
How can I do this? Pihole DNS records don't do anything at the port level.
It's the port that's tripping me. How do I point jellyfin to that domain? It's on docker on port 8096 - the hostname isn't the problem, it's the container.
I use pihole running on an esxi server for dns. In pihole you can create local dns records which is exactly what you’re trying to do. It’s very lightweight, you can run it on about anything.
Thanks. It was the ports that were more of an issue. It's one server with several containers and id like a local "url" for all of them, but looks like reverse proxies aster my only out, which is a shame because i'm dumb.
You don't need to expose it to the web to use a reverse proxy. You can use traefik, caddy, nginx, or any other reverse proxy to serve IP:PORT on domain.tld. You can use 80 or 443 as you'd like.
If you're using docker, it's even easier. How are you hosting your jellyfin?
PiHole as your DNS resolver. LocalDNS mapping whatever hostname you want to whatever IP you want.
Because I use Nginx Proxy Manager internally - then most of my hostname point to the Nginx IP address
I currently use a custom filter/rewrite in AdGuard Home (similar to pihole).
An alternative to running a central dns server is to use mDNS. You can install a daemon on each server that you want to access via hostname, and then clients know that ServerName.local domains should be resolved using mdns. They send out a dns query to a local multicast IP, the daemon on the servers receives the query and the appropriate one responds. By design it’s local only.
You should be able to use mDNS pretty easily. Some services (like Home Assistant) support it out-of-the-box. mDNS is what powers the .local domains (eg homeassistant.local).
I get that, they're a bit confusing at first. I'd highly recommend looking at Caddy, it's configuration is very simple. Really all you have to do is pick a domain name and point it at the correct port. If you're only accessing locally you don't even need to buy a domain.
You need to set up a local DNS server with a .servername zone and point your machines to it. You'd add an external DNS server like 1.1.1.1 as forwarder to allow internet traffic to still resolve.
Running a reverse proxy then adding your IP to your router/other-DNS-server will make it easy ish. Just don’t pick a domain that is used by other people. If you have a(ny) domain you own then a subdomain you set in your router is fine/safe.
I have *.[house domain] point to a static IP set in my router. The IP is announced via BGP to point to running Traefik instances as a reverse proxy that points to the appropriate container. This also gives certs, but isn’t required.
I wouldnt use .local as that's also used by apples Bonjour service if I recall correctly. I use .internal which Google and Facebook currently use for microservice stuff. So the odds it ever becomes a tld are almost null.
You can add an entry to your /etc/hosts file for the IP part, but this cannot remove the need to specify the port number as it is unrelated to the domain/IP
After much suffering with local zones (mainly due to stubborn devices ignoring dns servers coming via dhcp and retarded corporate vpn messing with resolv.conf) I just use xxx.local.mydomain.tld with a small script that parses the leases files and updates the data via cloud flare api.
I ended up doing a similar thing for the same reasons, too many things ignoring my local dns. I ended up creating a subdomain for my house where all the A records had internal ips. I gave out fixed leases to the things with names though instead of dynamic dns updates.
I have static ips for the server-ish things and few important devices too, but for the rest (swarm of shellys, esp32, etc.) I'm too lazy to maintain the list =)
There are a lot of comments, and I didn’t feel like reading them all to see if someone said this, but you could use pi-hole to host a dns server on your network that forwards requests to a normal dns server but has a list of custom exceptions. This could be used for that as well as being a great ad blocker for any device that lets you change dns settings. (This includes a lot of smart tvs and things)