# detect dns query failure

 template: dns_query_query_status
       on: dns_query.query_status
    class: Errors
     type: DNS
component: DNS
     calc: $success
    units: status
    every: 10s
     warn: $this != nan && $this != 1
    delay: up 30s down 5m multiplier 1.5 max 1h
  summary: DNS query unsuccessful requests to ${label:server}
     info: DNS request type ${label:record_type} to server ${label:server} is unsuccessful
       to: sysadmin
