How do you guys set internal domains?

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?

      • novarime@sopuli.xyzOP
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        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.

        • jjakc@lemthony.com
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          Sorry I meant in your browser. Yes dns does not point to ports.

          You would have to use some sort of reverse proxy that is only accessible from internal networks

    • novarime@sopuli.xyzOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      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.

      • plo@kbin.social
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        Ah okay. You need some sort of reverse proxy.
        I really like caddy. Using it with caddy-docker-proxy in docker-compose makes it quite nifty:

        `version: ‘3.7’
        services:
        whoami:
        image: containous/whoami
        networks:
        - caddy
        labels:
        caddy: http://whoami.mylab.home
        caddy.reverse_proxy: “{{upstreams 80}}”

        networks:
        caddy:
        external: true`

        Just make sure to explicitly use ‘http’ instead of ‘https’. That way it won’t try to create certificates.

  • ilovetamako@lemmy.fmhy.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    I use a pi hole instance for this. I just point all the subdomains at my ngnix server and reverse proxy everything through that

  • finn@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 year ago

    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.

    You can also do something like this

  • asjmcguire@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    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

  • philipcristiano@lemmy.philipcristiano.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    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.

  • kamin@lemmy.kghorvath.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    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.

  • Célia@pricefield.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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

  • dan@upvote.au
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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).

  • zikk_transport2@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    1 year ago

    If externally available - i use domain. If local - by ip:port. I find it easier to rely on firefox bookmarks and their folders lol.

  • equidamoid@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    1 year ago

    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.