Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.0 backport] libnetwork: check DNS loopback with user DNS opts #45000

Merged
merged 1 commit into from
Feb 14, 2023

Commits on Feb 14, 2023

  1. libnetwork: check DNS loopback with user DNS opts

    DNS servers in the loopback address range should always be resolved in
    the host network namespace when the servers are configured by reading
    from the host's /etc/resolv.conf. The daemon mistakenly conflated the
    presence of DNS options (docker run --dns-opt) with user-supplied DNS
    servers, treating the list of servers loaded from the host as a user-
    supplied list and attempting to resolve in the container's network
    namespace. Correct this oversight so that loopback DNS servers are only
    resolved in the container's network namespace when the user provides the
    DNS server list, irrespective of other DNS configuration.
    
    Signed-off-by: Cory Snider <csnider@mirantis.com>
    (cherry picked from commit 046cc9e)
    Signed-off-by: Cory Snider <csnider@mirantis.com>
    corhere committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    7c09feb View commit details
    Browse the repository at this point in the history