[GH-ISSUE #234] Does dns-proxy-server support network-scoped aliases for a container? #92

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

Originally created by @groall on GitHub (Dec 3, 2021).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/234

What is expected

Doed dns-proxy-server support network-scoped aliases for the container?

What is Happening

I use aliases to connect containers to each other by a domain like in production. It works with a proxy server for http requests from a host or with coredns for other type request. But using coredns has the problem: from time to time a host OS doesnt use it due to rewriting resolf.conf. DPS overwrites resolv.conf and I would be like to use it instead of coredns to access containers by alias.

Changes (Optional)

Originally created by @groall on GitHub (Dec 3, 2021). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/234 ### What is expected Doed dns-proxy-server support network-scoped aliases for the container? ### What is Happening I use aliases to connect containers to each other by a domain like in production. It works with a proxy server for http requests from a host or with coredns for other type request. But using coredns has the problem: from time to time a host OS doesnt use it due to rewriting resolf.conf. DPS overwrites resolv.conf and I would be like to use it instead of coredns to access containers by alias. ### Changes (Optional)
kerem 2026-02-26 04:34:01 +03:00
Author
Owner

@mageddo commented on GitHub (Mar 2, 2023):

Hey,

By network scoped you mean this feature?

Containers on the default bridge network can only access each other by IP addresses, unless you use the --link option, which is considered legacy. On a user-defined bridge network, containers can resolve each other by name or alias.

I already used it without DPS but never tested it with DPS to be honest, I will take a look at that and see if it works somehow or how far we are to get it working.

For now, I think you can configure coredns address as a DPS remote server then it would solve the solve the container by alias, give it a try.

<!-- gh-comment-id:1452176943 --> @mageddo commented on GitHub (Mar 2, 2023): Hey, By network scoped you mean [this feature][1]? > Containers on the default bridge network can only access each other by IP addresses, unless you use the [--link option](https://docs.docker.com/network/links/), which is considered legacy. On a user-defined bridge network, containers can resolve each other by name or alias. I already used it without DPS but never tested it with DPS to be honest, I will take a look at that and see if it works somehow or how far we are to get it working. For now, I think you can configure coredns address as a DPS remote server then it would solve the solve the container by alias, give it a try. [1]: https://docs.docker.com/network/bridge/#differences-between-user-defined-bridges-and-the-default-bridge
Author
Owner

@mageddo commented on GitHub (Mar 2, 2023):

But using coredns has the problem: from time to time a host OS doesnt use it due to rewriting resolf.conf.

If your Linux has systemd-resolved installed then this issue will be resolved, try DPS 3.5.2, see #321

<!-- gh-comment-id:1452180978 --> @mageddo commented on GitHub (Mar 2, 2023): > But using coredns has the problem: from time to time a host OS doesnt use it due to rewriting resolf.conf. If your Linux has systemd-resolved installed then this issue will be resolved, try DPS 3.5.2, see #321
Author
Owner

@mageddo commented on GitHub (May 29, 2024):

Closing this issue, feel free to reopen it when you are able to respond

<!-- gh-comment-id:2138028454 --> @mageddo commented on GitHub (May 29, 2024): Closing this issue, feel free to reopen it when you are able to respond
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#92
No description provided.