[ZBXNEXT-8721] DNS monitoring improvements: add net.dns.get and net.dns.perf items, improve PTR record address handling Created: 2023 Sep 25  Updated: 2024 Jun 27  Resolved: 2024 Jan 30

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 7.0.0beta1, 7.0 (plan)

Type: Change Request Priority: Trivial
Reporter: Alex Kalimulin Assignee: Artjoms Rimdjonoks
Resolution: Fixed Votes: 6
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-1.png     PNG File screenshot-2.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-5401 Implemented key for DNS performance Closed
duplicates ZBXNEXT-3826 net.dns.record PTR too strict Closed
Epic Link: Zabbix 7.0
Team: Team INT
Sprint: Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401
Story Points: 4

 Description   

1. Add new key for Agent2

net.dns.get[<ip>,name,<type>,<timeout>,<count>,<protocol>,<flags>]

  1. extend type to support
    1. DNSSEC records: DNSKEY, CDNSKEY, DS, CDS, RRSIG, NSEC, NSEC3, NSEC3PARAM
    2. other records, e.g. CAA, NAPTR, DNAME, SSHFP (define in the spec)
  2. treat flags as a comma-separated list of the following:
    1. cdflag, nocdflag (default) - maps to CD flag
    2. rdflag (default), nordflag - maps to RD flag
    3. dnssec, nodnssec (default) - maps to DO flag
    4. nsid, nonsid (default) - maps to NSID option
    5. edns0 (default), noedns0 - maps to EDNS0 settings
      1. dnssec is not allowed if noedns0 is set
  3. return JSON that may include
    1. response flags (e.g. AA, RA)
    2. response code (NOERROR, SERVFAIL, etc)
    3. response sections: question, answer, authority, additional
    4. nsid
    5. query time
    6. error state (e.g. if DNS is down)

2. Agent and Agent2 changes

2.1 add net.dns.perf[<ip>,name,<type>,<timeout>,<count>,<protocol>]
return 0 if DNS is down, query time in seconds (with fractions) otherwise
2.2 improve handling of PTR requests in net.dns, net.dns.record, net.dns.perf (see ZBXNEXT-3826)
support both forms: net.dns[,4.3.2.1.in-addr.arpa,PTR] and net.dns[,1.2.3.4,PTR], including IPv6



 Comments   
Comment by Artjoms Rimdjonoks [ 2023 Dec 19 ]

Available in versions:

  • pre-7.0.0beta1 abfcdc5284a
    (added support for IPSECKEY and AMTRELAY record types)
Comment by Arturs Dancis [ 2024 Jan 04 ]

Documentation (7.0) updated:

Generated at Sat Aug 02 10:52:58 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.