Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6807

net.dns key and resolv.conf issue

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      Linux

      Description

      net.dns key fails while resolv.conf contains both ipv4 and ipv6 nameservers and machine haven't configured ipv6 connection correctly, even if I try to reach explicitly named ipv4 NS):

      [[email protected] ~]# cat /etc/resolv.conf
      options timeout:1
      nameserver 217.11.224.1
      nameserver 2001:1528:1::1
      nameserver 217.11.224.2
      nameserver 2001:1528:1::2

      [[email protected] ~]# zabbix_agentd -t net.dns[8.8.8.8,google.com]
      net.dns[8.8.8.8,google.com][8.8.8.8,google.com] [u|0]

      strace says:
      socket(PF_INET6, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)

      When I comment ipv6 nameservers in resolv.conf check works okay:

      [[email protected] ~]# cat /etc/resolv.conf
      options timeout:1
      nameserver 217.11.224.1
      #nameserver 2001:1528:1::1
      nameserver 217.11.224.2
      #nameserver 2001:1528:1::2

      [[email protected] ~]# zabbix_agentd -t net.dns[8.8.8.8,google.com]
      net.dns[8.8.8.8,google.com][8.8.8.8,google.com] [u|1]
      [[email protected] ~]#

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tomas_krasnican Tomas Krasnican
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: