-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[wip] libpod: propogate custom DNS server to /etc/resolv.conf
only when dns_enabled
for network
#16175
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
aeb2e05
to
1eba972
Compare
1dab847
to
91f2ab3
Compare
Since aardvark has no support for custom dns right now we should not change this. Only when this feature is implemented we can switch this |
91f2ab3
to
4de1323
Compare
That's fair we can get this in at last when entire feature is implemented. |
4de1323
to
54d79e2
Compare
…_enabled Podman populates container's `/etc/resolv.conf` with custom DNS servers ( specified via `--dns` or `dns_server` in containers.conf ) even when container is connected to a network where `dns_enabled` is `true`. Current behavior does not matches with docker, hence following commit ensures that podman only populates custom DNS server when container is not connected to any network where DNS is enabled and for the cases where `dns_enabled` is `true` the resolution for custom DNS server will happen via ( `aardvark-dns` or `dnsname` ). Reference: https://docs.docker.com/config/containers/container-networking/#dns-services Closes: containers#16172 ```release-note container: `--dns` and `dns_server` behavior for containers connected to network matches with docker now ``` Signed-off-by: Aditya R <[email protected]>
54d79e2
to
01915ad
Compare
/etc/resolv.conf
only when dns_enabled
for network/etc/resolv.conf
only when dns_enabled
for network
Moving to WIP until the aardvark fix is in place. |
Closing in favor of: #16297 |
Podman populates container's
/etc/resolv.conf
with custom DNS servers ( specified via--dns
ordns_server
in containers.conf ) even when container is connected to a network wheredns_enabled
istrue
.Current behavior does not matches with docker, hence following commit ensures that podman only populates custom DNS server when container is not connected to any network where DNS is enabled and for the cases where
dns_enabled
istrue
the resolution for custom DNS server will happen via (
aardvark-dns
ordnsname
).Reference: https://docs.docker.com/config/containers/container-networking/#dns-services
Closes: #16172