diff options
author | Matthew Heon <matthew.heon@pm.me> | 2022-02-09 15:02:55 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-02-10 09:44:00 -0500 |
commit | 87cca4e5e302050f0ed6b37f3922c769f278efc0 (patch) | |
tree | bab63cde8fb02899b22f79dd45052708e5516d9c /go.mod | |
parent | 6ffd59828dd3c58c0927bd715e0a5a7b0c3baf2f (diff) | |
download | podman-87cca4e5e302050f0ed6b37f3922c769f278efc0.tar.gz podman-87cca4e5e302050f0ed6b37f3922c769f278efc0.tar.bz2 podman-87cca4e5e302050f0ed6b37f3922c769f278efc0.zip |
Modify /etc/resolv.conf when connecting/disconnecting
The `podman network connect` and `podman network disconnect`
commands give containers access to different networks than the
ones they were created with; these networks can also have DNS
servers associated with them. Until now, however, we did not
modify resolv.conf as network membership changed.
With this PR, `podman network connect` will add any new
nameservers supported by the new network to the container's
/etc/resolv.conf, and `podman network disconnect` command will do
the opposite, removing the network's nameservers from
`/etc/resolv.conf`.
Fixes #9603
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions