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

dnsmasq crash when used for DNS caching with NetworkManager

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.1.0
    • dnsmasq
    • None
    • None
    • sst_cs_infra_services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      I'm using dnsmasq to provide local DNS caching with NetworkManager so NM is responsible for starting and managing dnsmasq. This is an IPv4-only system.

      These are the related configuration files in the setup:

      1. cat /etc/resolv.conf
        nameserver 127.0.0.1
        search example.com
        options edns0 no-aaaa trust-ad
      2. cat /etc/NetworkManager/conf.d/50-dns.conf
        [main]
        dns=dnsmasq
      3. cat /etc/NetworkManager/conf.d/99-rc-manager.conf
        [main]
        rc-manager=unmanaged
      4. cat /etc/NetworkManager/dnsmasq.d/zz-local.conf
        addn-hosts=/etc/hosts
        domain-needed
        bogus-priv
        local=/example.com/
        local-ttl=10
        min-cache-ttl=10
        neg-ttl=10

      When booting up the system or restarting NM I see new core files appearing:

      1. file /var/lib/systemd/coredump/core.5835
        /var/lib/systemd/coredump/core.5835: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from '/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces', real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: '/usr/sbin/dnsmasq', platform: 'x86_64'

      I'm not sure if this is the same issue as bug 2182342 but filing just in case and will attach a core dump. Thanks.

      Version-Release number of selected component (if applicable):
      dnsmasq-2.85-5.el9.x86_64

            pemensik@redhat.com Petr Mensik
            myllynen Marko Myllynen
            Petr Mensik Petr Mensik
            rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: