Home

How to reach different services via name instead of ip?

$$3413
https://lemmy.world/u/Auth posted on Feb 24, 2026 00:57

On my Lan I have 192.168.1.111 hosting a bunch of various services not containerized. All connections are done either from my internal lan or from wireguard going through 192.168.1.111 so no external traffic bar wireguard.

I’ve set the host name of 111 in the hosts file inside the router and 111 and it works for all devices expect the ones connecting via wireguard.

But I dont want to have to use hostname+port for every service, I’d like each service to have its own name. I’d also like certs.

Can someone point me in the right direction for what I need to do? I’m thinking maybe this requires a local DNS server which im hesitant to run because im happy using 8.8.8.8.

For certs do I create a single cert on the 192.168.1.111 and then point all the applications to it?

https://lemmy.world/post/43506147
Reply
$$3421
https://feddit.org/u/mech posted on Feb 24, 2026 01:04
In reply to: https://lemmy.world/post/43506147

To do this properly, you’ll need to set up a reverse proxy that publishes your different ports on different IP addresses.
Then you can use DNS or (locally) a hosts file for name resolution.

https://feddit.org/comment/11687980
Reply
$$3424
https://programming.dev/u/CameronDev posted on Feb 24, 2026 01:04
In reply to: https://lemmy.world/post/43506147

Nginx proxy manager can help you with all of that.

basically want a domain name that you can use to subdomain each service off.

E.g: https://service1.auth.local/ -> proxies your first service (192.168.1.111:4567) Https:/service2.auth.local -> proxies to the second (192.168.1.123:9876) And so on.

If you purchase an actual domain name, you can get letencrypt certs via nginx proxy manager, and it all works very smoothly.

https://programming.dev/comment/22359546
Reply
$$3422
https://reddthat.com/u/tartarin posted on Feb 24, 2026 01:04
In reply to: https://lemmy.world/post/43506147

Certificates can have multiple usages and you didn’t specify the purpose in your case. A certificate is not necessarily tied to an IP or even a server. However, if you want to authenticate the server with a certificate, you will need the IP address to be resolved by a DNS. So, you should clarify what you actually want to accomplish. Do you expect your certificates to be self-signed or signed by a certification authority? A certification authority cannot validate a private IP address.

https://reddthat.com/comment/24961546
Reply
$$3431
https://lemmy.world/u/Auth posted on Feb 24, 2026 01:12
In reply to: https://reddthat.com/comment/24961546

Sorry, a cert for https because im sick of the annoying browser warning.

https://lemmy.world/comment/22311817
Reply
$$3435
https://lemmy.world/u/Auth posted on Feb 24, 2026 01:14
In reply to: https://programming.dev/comment/22359546

Ok thanks ill give that ago tonight. I never would have thought of a proxy manager.

https://lemmy.world/comment/22311846
Reply
$$3443
https://programming.dev/u/CameronDev posted on Feb 24, 2026 01:18
In reply to: https://lemmy.world/comment/22311846

You can of course do it manually with plain nginx, it’s just a little more effort.

https://programming.dev/comment/22359741
Reply
$$3445
https://lemmy.decronym.xyz/u/Decronym posted on Feb 24, 2026 01:20
In reply to: https://lemmy.world/post/43506147

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
HTTP Hypertext Transfer Protocol, the Web
IP Internet Protocol
nginx Popular HTTP server

[Thread #113 for this comm, first seen 24th Feb 2026, 01:20] [FAQ] [Full list] [Contact] [Source code]

https://lemmy.decronym.xyz/comment/13300
Reply
$$3446
https://lemmy.world/u/ReticulatedPasta posted on Feb 24, 2026 01:22
In reply to: https://lemmy.world/post/43506147

This would be done either via a reverse proxy (for public access via a domain you own, ex: service1.reticulatedpasta.com), or via a local DNS server if only being accessed via LAN. For a reverse proxy, I use caddy which also manages SSL certs.

https://lemmy.world/comment/22311957
Reply
$$3474
https://lemmy.world/u/suicidaleggroll posted on Feb 24, 2026 03:09
In reply to: https://lemmy.world/comment/22311817

self-signed won’t get rid of any warnings, it will just replace “warning this site is insecure” with “warning this site uses a certificate that can’t be validated”, no real improvement. What you need is a cert signed by an actual certificate authority. Two routes for that:

  1. Create your own CA. This is free, but a PITA since it means you have to add this CA to every single device you want to be able to access your services. Phones, laptops, desktops, etc.

  2. Buy a real domain, and then use it to generate real certs. You have to pay for this option ($10-20/year, so not a lot), but it gets you proper certs that will work on any device. Then you need to set up a reverse proxy (nginx proxy manager was mentioned in another post, that will work), configure it to generate a wildcard cert for your domain using DNS-01 challenge, and then apply that cert to all of your subdomains. Here’s a pretty decent video that walks you through the process: https://m.youtube.com/watch?v=TBGOJA27m_0

https://lemmy.world/comment/22313070
Reply
$$3497
https://lemmy.zip/u/possiblylinux127 posted on Feb 24, 2026 04:51
In reply to: https://lemmy.world/post/43506147

DNS?

https://lemmy.zip/comment/24843369
Reply
$$3506
https://reddthat.com/u/mrnobody posted on Feb 24, 2026 05:09
In reply to: https://lemmy.world/post/43506147

First off, get of for DNS!!! Use 9.9.9.9 (quad9) or DNS.watch for God’s sake! Even 1.1.1.1 is better!

https://reddthat.com/comment/24964745
Reply
$$3508
https://lemmy.ml/u/NewOldGuard posted on Feb 24, 2026 05:19
In reply to: https://reddthat.com/comment/24964745

Can also use mullvad’s DNS, it’s free

https://lemmy.ml/comment/24149347
Reply
$$3511
https://lemmy.zip/u/frongt posted on Feb 24, 2026 05:34
In reply to: https://feddit.org/comment/11687980

Yes, reverse proxy, but you don’t want to publish on different IP addresses. Your services should bind to one IP, different ports, and the reverse proxy accepts it all on 443 and routes it based on the host header.

I use traefik for this, set labels in the docker compose and it Just Works. It also gets certs for me based on the acme DNS challenge. Some people use caddy instead of traefik and they seem happy with it.

https://lemmy.zip/comment/24843796
Reply
$$3522
https://lemmy.world/u/non_burglar posted on Feb 24, 2026 06:01
In reply to: https://programming.dev/comment/22359546

This is way overkill for what op wants. Pihole, add local A records, done. If they want a reverse proxy after that, they still can.

https://lemmy.world/comment/22314731
Reply
$$3525
https://lemmy.zip/u/illusionist posted on Feb 24, 2026 06:05
In reply to: https://lemmy.world/comment/22311846

I used nginx proxy manager for a while. Nowadays I use caddy, and I wouldn’t want to look back. It has no gui but a caddyfile. It works much smoother for me.

https://lemmy.zip/comment/24844147
Reply
$$3531
https://programming.dev/u/CameronDev posted on Feb 24, 2026 06:21
In reply to: https://lemmy.world/comment/22313070

.uk domains are very cheap, $5ish AUD, which is ~2.5usd.

https://programming.dev/comment/22362804
Reply
$$3539
https://feddit.it/u/LievitoPadre posted on Feb 24, 2026 06:56
In reply to: https://lemmy.world/post/43506147

You need a thing called reverse proxy. There are many available.

Some suggested nginx, I recommend to give a try to caddy. It’s easier than nginx and includes the certificate management as well.

https://feddit.it/comment/18480472
Reply
$$3549
https://lemmy.world/u/Tanoh posted on Feb 24, 2026 07:23
In reply to: https://lemmy.zip/comment/24843796

Ideally the services should only bind to localhost and not 0.0.0.0 or similar as well. Allowing both proxied and non-proxied requests will 99100 times cause problems, and then one time it doesn’t it is just confusion for no benefit.

https://lemmy.world/comment/22315665
Reply
$$3565
https://scribe.disroot.org/u/Marzanna posted on Feb 24, 2026 08:22
In reply to: https://lemmy.world/post/43506147

You can use mDNS so you don’t have to type IP address.

https://scribe.disroot.org/comment/9611891
Reply
$$3619
https://lemmy.world/u/foggy posted on Feb 24, 2026 11:40
In reply to: https://lemmy.world/comment/22311846

Traefik’s configs are a little less cumbersome if you’re managing a lot of services.

https://lemmy.world/comment/22318203
Reply
$$3623
https://sopuli.xyz/u/LastYearsIrritant posted on Feb 24, 2026 11:52
In reply to: https://feddit.it/comment/18480472

NPM, Nginx Proxy Manager also has a UI and certificate management.

https://sopuli.xyz/comment/22075532
Reply
$$3627
https://lemmy.world/u/BeatTakeshi posted on Feb 24, 2026 12:03
In reply to: https://lemmy.world/post/43506147

What about hosting a homepage with links to all other services ?

https://lemmy.world/comment/22318458
Reply
$$3628
https://feddit.org/u/hamsda posted on Feb 24, 2026 12:17
In reply to: https://sopuli.xyz/comment/22075532

Currently using nginx-proxy-manager for exactly this purpose. Nice and easy-to-use UI, including automatic LetsEncrypt ssl certificates :)

https://feddit.org/comment/11694575
Reply
$$3630
https://lemmy.ca/u/Cerothen posted on Feb 24, 2026 12:18
In reply to: https://sopuli.xyz/comment/22075532

I would consider zoraxy.

https://github.com/tobychui/zoraxy

Single go binary, works on Windows natively if you need that and somewhat more feature rich than npm (if your not custom writing configs)

https://lemmy.ca/comment/21874526
Reply
$$3650
https://lemy.lol/u/melfie posted on Feb 24, 2026 12:50
In reply to: https://lemmy.world/post/43506147

I have a TP-Link router with OpenWRT and use it to make local DNS entries for my services, like jellyfin.lan and forgejo.lan. I’m also running k3s, which comes with Traefik as a built-in reverse proxy.

https://lemy.lol/comment/24351656
Reply
$$3660
https://fedia.io/u/SaltySalamander posted on Feb 24, 2026 13:10
In reply to: https://reddthat.com/comment/24964745

Why?

https://fedia.io/m/selfhosted@lemmy.world/t/3497014/-/comment/14176283
Reply
$$3661
https://fedia.io/u/SaltySalamander posted on Feb 24, 2026 13:11
In reply to: https://lemmy.world/comment/22311817

You already have a self-signed cert. That’s why you get the warning.

https://fedia.io/m/selfhosted@lemmy.world/t/3497014/-/comment/14176303
Reply
$$3665
https://programming.dev/u/pipe01 posted on Feb 24, 2026 13:20
In reply to: https://feddit.it/comment/18480472

+1 for caddy, I’ve been using it in my homelab for years and the configuration is just trivial

https://programming.dev/comment/22367518
Reply
$$3680
https://lemmy.world/u/reabsorbthelight posted on Feb 24, 2026 13:54
In reply to: https://fedia.io/m/selfhosted@lemmy.world/t/3497014/-/comment/14176283

I think they’re complaining any Google DNS. It’s just a privacy matter. Google will heavily track your DNS requests

https://lemmy.world/comment/22320201
Reply
$$3712
https://reddthat.com/u/mrnobody posted on Feb 24, 2026 15:31
In reply to: https://fedia.io/m/selfhosted@lemmy.world/t/3497014/-/comment/14176283

Yeah, i assume you’re like a lot of other people where you don’t want everything you do to be tracked online. The service from Google is functional and all, by not trustworthy.

You can adjust this on your device (per device) or on your home modem/router/gateway, etc to cover all devices. Keeps Google, MS, Apple, ISP from tracking all online queries for all devices.

You can go one step further andd block all outgoing requests from all devices over port 53 and leave your router configured to do them all, then just configure you’re DHCP settings to use your gateway (like 192.168.1.1) for both gateway and DNS

https://reddthat.com/comment/24973140
Reply
$$3715
https://sh.itjust.works/u/fruitycoder posted on Feb 24, 2026 15:39
In reply to: https://lemmy.world/post/43506147

Reverse proxies! They can redirect based on the dns name used to get to them. This is based on layer 7 data though so just http(s) services and not multiple ssh tunnels for example.

k3s/rke2 (k8s distros) do it automatically with Traefik when you use the gateway or ingres apis

Also for DNS a fun option is sslip.io which lets you do -192-168-1-10.sslip.io and it redirects to your ip but with a dns name added.

Though your router likely has an easy way to add local entries for dns and also upstream for the rest (i.e. 8.8.8.8)

https://sh.itjust.works/comment/23952004
Reply
$$3748
https://lemmy.world/u/irmadlad posted on Feb 24, 2026 17:34
In reply to: https://lemmy.world/post/43506147

As others have said, reverse proxy. My experience is with Caddy and LetsEncrypt. If you wanted to step it up a couple notches, you could go with Cloudflare tunnels/zero trust. With the latter scenario, you’ll need a domain name that you can change the nameservers to Cloudflare assigned nameservers. With the Cloudflare option, you don’t have to fiddle with ports, UFW, or NAT. Just install on your server and it punches a fully encrypted tunnel.

https://lemmy.world/comment/22324201
Reply
$$3766
https://lemmy.world/u/Auth posted on Feb 24, 2026 18:54
In reply to: https://reddthat.com/comment/24964745

I live in a remote country and the other providers are slow. I could switch to cloudflare i guess

https://lemmy.world/comment/22325789
Reply
$$3780
https://reddthat.com/u/mrnobody posted on Feb 24, 2026 19:35
In reply to: https://lemmy.world/comment/22325789

Dns.watch is global as is quad9. Says available in 110 countries

https://reddthat.com/comment/24978535
Reply
$$3875
https://lemmy.world/u/Auth posted on Feb 25, 2026 00:49
In reply to: https://lemmy.world/comment/22318458

I did consider that but im trying to build a website and its painful and the thought of doing anything more with css makes me wanna die.

Is there any plug and play home pages you could suggest?

https://lemmy.world/comment/22331609
Reply
$$4054
https://lemmy.world/u/BeatTakeshi posted on Feb 25, 2026 10:15
In reply to: https://lemmy.world/comment/22331609

See the section “Personal dashboards” of this great resource page I often refer to: https://github.com/awesome-selfhosted/awesome-selfhosted

https://lemmy.world/comment/22336742
Reply
$$4056
https://lemmy.blahaj.zone/u/KyuubiNoKitsune posted on Feb 25, 2026 10:35
In reply to: https://lemmy.world/post/43506147

I don’t see anyone else recommending it here but you can also use Traefik, that’s what I use. I’ve sein it up so that I can automatically add any docker hosted apps based on the container tags, it makes it convenient to use.

https://lemmy.blahaj.zone/comment/19357766
Reply