podman-network-update(1) General Commands Manual podman-network-update(1)

podman-network-update - Update an existing Podman network

podman network update [options] network

Allow changes to existing container networks. At present, only changes to the DNS servers in use by a network is supported.

NOTE: Only supported with the netavark network backend.

--dns-add

Accepts array of DNS resolvers and add it to the existing list of resolvers configured for a network.

--dns-drop

Accepts array of DNS resolvers and removes them from the existing list of resolvers configured for a network.

Update a network:

$ podman network update network1 --dns-add 8.8.8.8,1.1.1.1

Update a network and add/remove dns servers:

$ podman network update network1 --dns-drop 8.8.8.8 --dns-add 3.3.3.3

podman(1), podman-network(1), podman-network-inspect(1), podman-network-ls(1)