Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does dns-proxy-server support network-scoped aliases for a container? #234

Closed
groall opened this issue Dec 3, 2021 · 3 comments
Closed

Comments

@groall
Copy link

groall commented Dec 3, 2021

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)

@groall groall changed the title Doed dns-proxy-server support network-scoped aliases for the container? Doed dns-proxy-server support network-scoped aliases for a container? Dec 3, 2021
@mageddo
Copy link
Owner

mageddo commented 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.

@mageddo
Copy link
Owner

mageddo commented 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

@mageddo mageddo changed the title Doed dns-proxy-server support network-scoped aliases for a container? Does dns-proxy-server support network-scoped aliases for a container? Mar 2, 2023
@mageddo
Copy link
Owner

mageddo commented May 29, 2024

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

@mageddo mageddo closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants