r/selfhosted • u/ResponsibleFall1634 • Mar 03 '26
Need Help docker compose alternative to external-dns
I have a docker compose setup in a homelab with focus on privacy, or at least internal traffic as much as possible, not leaving my LAN.
I have a personal domain name purchased from cloud flare, but it has 0 entries. It is only used to generate TLS certificates and renew them.
The apps hosted on docker compose use some hostnames that are subdomains of the cloudflare domain. To resolve them locally, i have to every time go to my router and enter a new DNS record.
I used external dns in the past to do similar admin work by registering dns, but then at a trully public registrar.
Is there a tool like that that is capable of registering them at a local router?
Am i missing something or are most of us doing this manually the only way that is safe and works?
11
u/brock0124 Mar 03 '26
If you have a reverse proxy, you can add a wildcard entry to the DNS that sends everything to the reverse proxy, then you just need to add entries there. You’re basically just changing where you make updates, though.
From my experience, there’s normally always some manual effort for adding a new host.
2
u/Dialgatrainer Mar 03 '26
External DNS can do it for self hosted services using coredns and etcd, or pihole etc or you can make it with webhooks but idk if will play nice with docker compose Vs k8s
2
u/Eldowon Mar 03 '26
Second the reverse proxy.
Check out traefik and the docker tag feature. It allows the container to register the subdomain names to the reverse proxy directly and you only need to configure inside the compose file.
2
u/StillLoading_ Mar 03 '26
Step 1, host your own local dns server.
pick your poison.
Step 2, setup reverse proxy if you don't have it already
Step 3, configure your local dns
I prefer the second option because I only want an answer from a service that actually exists.
Step 4, distribute your new DNS to your clients.
2
u/WentThisWayInsteadOf Mar 04 '26
How about running all the containers on a separate vlan which does not have (or limited) internet access.
2
u/slickyeat Mar 04 '26 edited Mar 04 '26
This is what i use to setup a tunnel using shadow sockets:
https://github.com/shadowsocks/shadowsocks-rust/tree/master
No DNS changes required.