moby/integration/networking
Albin Kerouanton a987bc5ad0 libnet: Don't forward to upstream resolvers on internal nw
Commit cbc2a71c2 makes `connect` syscall fail fast when a container is
only attached to an internal network. Thanks to that, if such a
container tries to resolve an "external" domain, the embedded resolver
returns an error immediately instead of waiting for a timeout.

This commit makes sure the embedded resolver doesn't even try to forward
to upstream servers.

Co-authored-by: Albin Kerouanton <albinker@gmail.com>
Signed-off-by: Rob Murray <rob.murray@docker.com>
(cherry picked from commit 790c3039d0)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-03-19 11:21:46 +00:00
..
bridge_test.go Test DNS on Windows 'nat' networks 2024-03-01 13:51:20 +01:00
mac_addr_test.go Don't create endpoint config for MAC addr config migration 2024-03-06 11:20:10 +01:00
main_test.go integration: Add a new networking integration test suite 2023-11-03 09:58:50 +01:00
resolvconf_test.go libnet: Don't forward to upstream resolvers on internal nw 2024-03-19 11:21:46 +00:00