mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #617] Feature Request: Allow override of container IPs #202
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomrund on GitHub (Dec 15, 2024).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/617
Hi, I recently setup a reverse proxy for my docker containers and also have letsencrypt grabbing certs for the reverse proxy which is really nice! The last piece I needed was some way to resolve containers that are being reverse proxied, to the docker host automatically. I thought I might be able to utilize dns-proxy-server for this, however I can't find any way to override the real container IPs that dns-proxy-server is resolving with, with a different IP address (the reverse proxy listen IP).
I'm not sure if there's a better way to accomplish this than adding a feature to dns-proxy-server, but if there was a simple configuration option
OVERRIDE_CONTAINER_RESOLVE_IPor similar, and setting it would have all containers resolve with that IP instead of their real IP, that would solve my problem.I would just setup a wildcard DNS for the domain, but there are some other hosts on the domain that aren't containers running on the docker host in question. So I was hoping to have a way to automatically setup DNS records for containers running on this host and have the records resolve to the docker host's reverse proxy.
@mageddo commented on GitHub (Dec 16, 2024):
Hey, I can think of two options to achieve this:
By using Local Entries Solver
Create a A Record for each hostname you want to point to the reverse-proxy specifying the reverse-proxy IP
Using Docker Solver
If the reverse-proxy is a container start it using the hostnames you want it to be bind with, ex
docker run -e HOSTNAMES=host1.com,host2.com ...and run the containers with some local hostname likehost1.dockerto prevent conflicts on the DNS registration@github-actions[bot] commented on GitHub (Jan 11, 2025):
This issue is stale because it has been waiting-feedback for 15 days with no activity.
@github-actions[bot] commented on GitHub (Jan 19, 2025):
This issue was closed because it has been inactive for 7 days since being marked as stale, you can reopen it at any time.