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

net.dns key and resolv.conf issue

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.0.6
    • Agent (G)
    • 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 ~]#

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

              Created:
              Updated: