if you don’t want to rent a domain, but you run a local DNS server (pihole, technitium) for filtering or other reasons, you can register your own domain names in there, for free. but don’t use common TLDs to avoid conflicts, and leave “.local” alone too because that’s used by mdns/avahi. You may use .home, .lan, or a few others I don’t know without looking them up
Comment on How to reverse proxy?
beeng@discuss.tchncs.de 1 month agoHow does my DNS know where to look for this?
WhyJiffie@sh.itjust.works 5 weeks ago
HelloRoot@lemy.lol 1 month ago
you rent a domain
in the config (provided by the service where you rented the domain) you set it to point to the IP of the device where you run caddy
the service tells the relevant global DNS servers your setting
your DNS does a DNS lookup and a DNS server returns the IP you configured it to point to
Depending on the DNS you use, you can manually add entries to do 1-3 differently, but that will only work for devices that use your DNS
beeng@discuss.tchncs.de 1 month ago
Is this a local address or a public IP address?
I just want the resolving internal to my network but I never got it working right.
Scrath@lemmy.dbzer0.com 5 weeks ago
I’m not the guy you replied to but personally I use a setup called split-horizon DNS.
This is a little bit of a simplification. I also use a cloudflare tunnel to allow access to select subdomains and I have 2 reverse-proxies chained together since NPM can resolve services by their container name as long as they are in the same docker network.
Also probably important: My DNS server was a pi-hole (until today at least) and did not act as my DHCP server. This meant it had no idea of local device hostnames and therefore was configured to forward queries to local device names to my routers built-in DNS server.
DevotedOtter@lemm.ee 5 weeks ago
I’m looking to do something like this. I’m uneasy about having the registered domain pointing towards my IP address (partially because I’m unsure of the exact risks and partially because I’d rather do it internally if possible).
You said you were using pihole. What did you change to and why did you change? Pihole seems the most recommended from what I’ve seen?
PlexSheep@infosec.pub 5 weeks ago
If you want DNS only in your LAN, you need to self host a DNS server and register this domain locally (by putting it in some config file of yours)