[ZBX-26121] net.dns.get issues (resolution, query time) Created: 2025 Mar 03 Updated: 2025 Apr 07 Resolved: 2025 Apr 07 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent2 (G) |
Affects Version/s: | 7.0.10 |
Fix Version/s: | 7.0.12rc1, 7.2.6rc1, 7.4.0beta1 |
Type: | Problem report | Priority: | Trivial |
Reporter: | Alex Kalimulin | Assignee: | Artjoms Rimdjonoks |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | 3.5h | ||
Original Estimate: | Not Specified |
Team: | |
Sprint: | S25-W10/11, S25-W12/13, S25-W14/15 |
Story Points: | 1 |
Description |
net.dns.get has some issues: 1. $ zabbix_get -s localhost -k 'net.dns.get[1.1.1.1,_nonexistant__.google.com,A]' {"flags":["RA"],"query_time":"0.00","question_section":[{"qclass":"IN","qname":"_nonexistant__.google.com.","qtype":"A"}],"response_code":"SERVFAIL","zbx_error_code":0} But: $ zabbix_get -s localhost -k 'net.dns.get[1.1.1.1,_nonexistant__.google.com,A,,,,""]' {"authority_section":[{"class":"IN","name":"google.com.","rdata":{"expire":1800,"mbox":"dns-admin.google.com.","minttl":60,"ns":"ns1.google.com.","refresh":900,"retry":900,"serial":731662737},"rdlength":38,"ttl":60,"type":"SOA"}],"flags":["RD","RA"],"query_time":"0.04","question_section":[{"qclass":"IN","qname":"_nonexistant__.google.com.","qtype":"A"}],"response_code":"NXDOMAIN","zbx_error_code":0} 2. query_time has 2 decimal places precision. This means that times below 10ms will not be reported properly. It must be increased to 6 decimal places. |
Comments |
Comment by dimir [ 2025 Mar 04 ] |
Documentation should also be updated: https://www.zabbix.com/documentation/current/en/manual/appendix/items/return_values_net_dns_get |
Comment by Artjoms Rimdjonoks [ 2025 Apr 02 ] |
Available in versions:
|
Comment by Andrii Fediuk [ 2025 Apr 03 ] |
Updated documentation: |