net.dns key and resolv.conf issue

XMLWordPrintable

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

      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):

      [root@ns1 ~]# 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

      [root@ns1 ~]# 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:

      [root@ns1 ~]# 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

      [root@ns1 ~]# 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]
      [root@ns1 ~]#

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

              Created:
              Updated: