Search code examples
dnszabbix

Zabbix returns no data when doing DNS check with default DNS resolver


I'm trying to build an item for a Zabbix 3.4 template to perform DNS checks. Based on the documentation I should be using net.dns[<ip>,name,<type>,<timeout>,<count>,<protocol>]. If I specify an external DNS resolver such as Google or OpenDNS I get the expected return of 1.

However, when I remove the resolver IP and allow it to use default I get no data returned. The same happens when I manually specify the IP address in /etc/resolv.conf.

Thank you in advance for any help!


Solution

  • Your key is wrong. Try using this :

    net.dns[,domain.com,2,1]
    

    Removing the first argument does not mean to remove the comma ;)