moby/libnetwork/drivers
Rob Murray cd7240f6d9 Stop macvlan with no parent from using ext-dns
We document that an macvlan network with no parent interface is
equivalent to a '--internal' network. But, in this case, an macvlan
network was still configured with a gateway. So, DNS proxying would
be enabled in the internal resolver (and, if the host's resolver
was on a localhost address, requests to external resolvers from the
host's network namespace would succeed).

This change disables configuration of a gateway for a macvlan Endpoint
if no parent interface is specified.

(Note if a parent interface with no external network is supplied as
'-o parent=<dummy>', the gateway will still be set up. Documentation
will need to be updated to note that '--internal' should be used to
prevent DNS request forwarding in this case.)

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-04-10 08:51:00 +01:00
..
bridge fix duplicate words (dupwords) 2024-03-07 10:57:03 +01:00
host libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00
ipvlan Enable DNS proxying for ipvlan-l3 2024-04-10 08:50:57 +01:00
macvlan Stop macvlan with no parent from using ext-dns 2024-04-10 08:51:00 +01:00
null libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00
overlay golangci-lint: enable dupword linter 2024-03-07 11:44:27 +01:00
remote chore: fix mismatched function names in godoc 2024-03-22 16:24:31 +08:00
windows libnet: Replace DeleteAtomic in retry loops with DeleteIdempotent 2024-02-22 08:22:09 +01:00