Ad Widget

Collapse

Monitoring public DNS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yomismo
    Junior Member
    • Sep 2019
    • 1

    #1

    Monitoring public DNS

    Good afternoon,

    I am trying to monitor 2 public DNS (like Cloudflare, OpenDNS, Google DNS, etc...) that we use for Content Filtering.

    Is there anyway to check if it is resolving correctly (not just ping)? I have tried with net.dns[<ip>,name,<type>,<timeout>,<count>,<protocol>] but I get a "[2] No such file or directory" answer.

    Thanks in advanced,

  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Testing with zabbix_get, I had to add the type and timeout to get it to work, for example:

    zabbix_get -s <host) -k net.dns.record[,www.google.com,ANY,3]
    www.google.com A 216.58.194.68
    www.google.com AAAA 2607:f8b0:4000:803::2004

    but without the extra parms:
    zabbix_get -s ,host. -k net.dns.record[,www.google.com]
    ZBX_NOTSUPPORTED: Cannot perform DNS query.

    I was testing net.dsn.record, but try the same with net.dns

    Comment

    Working...