[GH-ISSUE #192] Change the IP address that the dns-proxy-server operates on. #76

Closed
opened 2026-02-26 04:33:58 +03:00 by kerem · 3 comments
Owner

Originally created by @trapeze-bell-peter on GitHub (Mar 25, 2020).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/192

I have posted this also as a question on Stackflow.

I am using mageddo/dns-proxy-server in my RoR environment to provide DNS resolution for the docker containers. This works like a treat until I connect to the company VPN. Unfortunately, dns-proxy-server binds to the port 172.17.0.2 which conflicts with the VPN. My other containers are using a different IP range.

I am wondering whether there is a way to get dns-proxy-server to bind to a different IP address to avoid the conflict with the VPN.

Many thanks in advance.

Originally created by @trapeze-bell-peter on GitHub (Mar 25, 2020). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/192 I have posted this also as a question on [Stackflow](https://stackoverflow.com/questions/60839978/how-to-configure-dns-proxy-server-in-docker-compose-to-bind-to-a-non-default-ip). I am using mageddo/dns-proxy-server in my RoR environment to provide DNS resolution for the docker containers. This works like a treat until I connect to the company VPN. Unfortunately, dns-proxy-server binds to the port 172.17.0.2 which conflicts with the VPN. My other containers are using a different IP range. I am wondering whether there is a way to get dns-proxy-server to bind to a different IP address to avoid the conflict with the VPN. Many thanks in advance.
kerem closed this issue 2026-02-26 04:33:58 +03:00
Author
Owner

@mageddo commented on GitHub (Apr 28, 2020):

@trapeze-bell-peter you can specify DPS container IP on the start, see

<!-- gh-comment-id:620319627 --> @mageddo commented on GitHub (Apr 28, 2020): @trapeze-bell-peter you can specify DPS container IP on the start, [see][1] [1]: https://github.com/mageddo/dns-proxy-server/blob/f6371b/examples/custom-hostnames-compose-file/docker-compose.yml#L13
Author
Owner

@mageddo commented on GitHub (Jul 10, 2020):

Not sure if my answer helped, feel free to continue the discussion if need it

<!-- gh-comment-id:656407792 --> @mageddo commented on GitHub (Jul 10, 2020): Not sure if my answer helped, feel free to continue the discussion if need it
Author
Owner

@trapeze-bell-peter commented on GitHub (Jul 10, 2020):

Really sorry. I thought I had answered. Your answer was perfect!

<!-- gh-comment-id:656518496 --> @trapeze-bell-peter commented on GitHub (Jul 10, 2020): Really sorry. I thought I had answered. Your answer was perfect!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#76
No description provided.