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

installing systemd-resolved breaks DNS

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • CentOS Stream 10
    • systemd
    • None
    • Important
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

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

      I installed the wireguard-tools package. After that, DNS was broken.

      The reason is that wireguard-tools depends on systemd-resolved (which isn't installed by default in CentOS 10). Installing systemd-resolved changes the static /etc/resolv.conf to a symlink to ../run/systemd/resolve/stub-resolv.conf , but doesn't actually start the service.

      Please provide the package NVR for which bug is seen:

      systemd-resolved-255.3-1.el10.x86_64

      How reproducible:

      Always

      Steps to reproduce

      dnf install -y wireguard-tools
      ping google.com
      

      Expected results

      ping (or any other network operation) works.

      Installing systemd-resolved should either start the service by default, or not change resolv.conf – changing the symlink could be moved to the unit start?

      Actual results

      "ping: google.com: Temporary failure in name resolution"

      This also breaks subsequent dnf install and everything else web-y.

              jamacku@redhat.com Jan Macku
              rhn-engineering-mpitt Martin Pitt
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: