diff options
author | Matthew Heon <matthew.heon@pm.me> | 2022-02-09 15:02:55 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-02-10 14:05:48 -0500 |
commit | 77ca2498e9d0e71b5bd0867306775dc158554612 (patch) | |
tree | 9fd5e01af4df5db0ad7495fd320c06e1b76c0043 /Makefile | |
parent | f8cd4df1b6024baf0841f0d554ffcc4d975fe12d (diff) | |
download | podman-77ca2498e9d0e71b5bd0867306775dc158554612.tar.gz podman-77ca2498e9d0e71b5bd0867306775dc158554612.tar.bz2 podman-77ca2498e9d0e71b5bd0867306775dc158554612.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 'Makefile')
0 files changed, 0 insertions, 0 deletions