Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-57695

[aardvark-dns-next] DNS non functional when unkown resolv.conf options are present

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.6
    • rhel-9.4
    • aardvark-dns
    • None
    • aardvark-dns-1.13.0-1.el9
    • No
    • Moderate
    • 4
    • rhel-sst-container-tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • RUN 260, RUN 261, RUN 262, RUN 263
    • None

      What were you trying to do that didn't work?

      With podman container added to custom network with network backend "netavark" does not inherit host's resolv.conf

      Please provide the package NVR for which bug is seen:

      $ rpm -qa | egrep 'podman|netav'
      netavark-1.10.3-1.el9.x86_64
      podman-4.9.4-6.el9_4.x86_64

      How reproducible:

      Always

      Steps to reproduce

      1. create new podman nw in rootless/rootful podman
        podman network create testdns2 --subnet 10.90.0.0/24 --gateway 10.90.0.1
      1. create a simple container with above created nw
        podman run --rm -d -it --network=testdns2 registry.redhat.io/ubi8
      1. resolv.conf on  host:

                $ cat /etc/resolv.conf

                  Generated by NetworkManager
                  search rhel94dns.lab.upshift.rdu2.redhat.com
                  nameserver 10.11.5.160
                  nameserver 10.2.70.215

             4.  /etc/resolv.conf on container:

                $ podman exec -it 01d59a01a5d1 cat /etc/resolv.conf
                   search dns.podman
                   nameserver 10.90.0.1

      The behavior is same for both rootful and rootless users however on specifying network backend as "CNI", the resolv.conf is inherited inside the container from the host.

      Expected results:

      The container should inherit the file /etc/resolv.conf from host.

              sraymaek Sanne Raymaekers
              rhn-support-rmypala Rachitha Mypala
              Container Runtime Eng Bot Container Runtime Eng Bot
              Yuhui Jiang Yuhui Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: