[ZBXNEXT-4898] net.dns does not suport ipv6 Created: 2018 Nov 21  Updated: 2024 Apr 10  Resolved: 2019 May 19

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 4.0.1
Fix Version/s: 4.0.6rc1, 4.2.0beta2, 4.2 (plan)

Type: Change Request Priority: Minor
Reporter: Luitzen van Gorkum Assignee: Andris Zeila
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7.5
Zabbix 4.0.1
/etc/resolv.conf: nameserver ipv6address


Attachments: File config.h     File dns_ipv6_agent30.diff     File socket_init30_get_sender.diff     File socket_init_agent30.diff    
Issue Links:
Causes
causes ZBX-16089 Not initialised windows socket in sen... Closed
Team: Team A
Sprint: Sprint 49 (Feb 2019), Sprint 50 (Mar 2019), Sprint 51 (Apr 2019), Sprint 52 (May 2019)
Story Points: 3

 Description   

Steps to reproduce:

  1. Create item net.dns(ipv6address,record,AAAA)
  2. Create item net.dns([ipv6address],record,AAAA)
  3. Create item net.dns(,record,AAAA)
  4. Navigate to latest data

Result:

  1. Wrong IP address
  2. Wrong IP address
  3. Wrong recordtype

Expected:
In all cases value 1 (nameserver up)



 Comments   
Comment by Luitzen van Gorkum [ 2018 Nov 21 ]

Looking in the sourcecode (libs/zbxsysinfo/common/net.c) I suggest:

  1. add AAAA to resolv_querytype_t
  2. change inet_aton to inet_pton, test twice with AF_INIT and AF_INET6 and set sin_family accordingly

I'm sorry I can't program this for you, I hope you can do something with my suggestions.

 

By the way, the component must be Agent instead of Templates, sorry

Comment by Elina Kuzyutkina (Inactive) [ 2018 Dec 04 ]

Hello  Luitzen van Gorkum,

The possible values for type are:
ANYANSCNAMEMBMGMRPTRMDMFMXSOANULLWKS (except for Windows), HINFOMINFOTXTSRV

It's not bug, but this can be a useful feature and we will move this ticket to the ZBXNEXT

Regards, Elina

Comment by Michael Veksler [ 2019 Mar 01 ]

Available in:

  • 4.0.6rc1 r90420
  • 4.2.0beta2 (trunk) r90421
Comment by Alexander Vladishev [ 2019 May 19 ]

Updated documentation: What's new in Zabbix 4.0.6#Item changes

Generated at Sat Apr 27 06:01:48 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.