Ad Widget

Collapse

DNS Request Check In Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vsdafdsfdasf
    Junior Member
    • Jan 2022
    • 1

    #1

    DNS Request Check In Zabbix

    Hello I would like to see whether the Zabbix agents are able to solve DNS queries or not. If they do not resolve the DNS queries then an alarm will be generated by the system. Is there a way to do this? (without configuring Zabbix on a DNS Server)
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Start with reading docs.. https://www.zabbix.com/documentation...s/zabbix_agent
    net.dns[<ip>,name,<type>,<timeout>,<count>,<protocol>]
    Checks if DNS service is up. 0 - DNS is down (server did not respond or DNS resolution failed)

    1 - DNS is up
    ip - IP address of DNS server (leave empty for the default DNS server, ignored on Windows)
    name - DNS name to query
    type - record type to be queried (default is SOA)
    timeout (ignored on Windows) - timeout for the request in seconds (default is 1 second)
    count (ignored on Windows) - number of tries for the request (default is 2)
    protocol - the protocol used to perform DNS queries: udp (default) or tcp
    Example:
    => net.dns[8.8.8.8,zabbix.com,MX,2,1]

    The possible values for type are:
    ANY, A, NS, CNAME, MB, MG, MR, PTR, MD, MF, MX, SOA, NULL, WKS (except for Windows), HINFO, MINFO, TXT, SRV

    Internationalized domain names are not supported, please use IDNA encoded names instead.

    The protocol parameter is supported since Zabbix 3.0.
    SRV record type is supported since Zabbix agent versions 1.8.6 (Unix) and 2.0.0 (Windows).

    Naming before Zabbix 2.0 (still supported): net.tcp.dns
    net.dns.record[<ip>,name,<type>,<timeout>,<count>,<protocol>]
    Performs a DNS query. Character string with the required type of information ip - IP address of DNS server (leave empty for the default DNS server, ignored on Windows)
    name - DNS name to query
    type - record type to be queried (default is SOA)
    timeout (ignored on Windows) - timeout for the request in seconds (default is 1 second)
    count (ignored on Windows) - number of tries for the request (default is 2)
    protocol - the protocol used to perform DNS queries: udp (default) or tcp
    Example:
    => net.dns.record[8.8.8.8,zabbix.com,MX,2,1]

    The possible values for type are:
    ANY, A, NS, CNAME, MB, MG, MR, PTR, MD, MF, MX, SOA, NULL, WKS (except for Windows), HINFO, MINFO, TXT, SRV

    Internationalized domain names are not supported, please use IDNA encoded names instead.

    The protocol parameter is supported since Zabbix 3.0.
    SRV record type is supported since Zabbix agent versions 1.8.6 (Unix) and 2.0.0 (Windows).

    Naming before Zabbix 2.0 (still supported): net.tcp.dns.query

    Comment

    Working...