[ZBX-24572] Host agent dont work with DNS name settings Created: 2024 Jun 02 Updated: 2025 Mar 24 Resolved: 2025 Mar 24 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 7.0.0rc3 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Pavel Mlcoch | Assignee: | Zabbix Development Team |
Resolution: | Duplicate | Votes: | 3 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
[root@zabbix adminlocal]# rpm -qa | grep postgres |
Attachments: |
![]() |
||||||||||||||||||||
Issue Links: |
|
Description |
Steps to reproduce:
Result: Expected: |
Comments |
Comment by Pavel Mlcoch [ 2024 Jun 11 ] |
After upgrade to release1 is not solved. [root@zabbix pavel_mlcoch]# rpm -qa | grep zabbix |
Comment by Pavel Mlcoch [ 2024 Jun 11 ] |
Debug log is full of this record with non-zero result: 35301:20240611:114236.698 In async_dns_event() result:-2 |
Comment by Benoit MOREAU [ 2024 Jun 12 ] |
I think I have found the reason for this problem. When you have multiple nameservers in your /etc/resolv.conf, it will distribute requests between them instead of follow the order priority. In my case, I have a private DNS server in 10.1.217.2 and use 8.8.8.8 in case of failure. And zabbix do these requests :
|
Comment by Pavel Mlcoch [ 2024 Jun 15 ] |
After configure DNS for only private server, it works. But in Z6.4 this working with both (private and public). Is this a bug in new dns caching? |
Comment by Hernandes Martins [ 2024 Jun 27 ] |
Here, after the upgrade the same situation. Zabbix agent work very well in 6.4, after upgrade with DNS don't work. |
Comment by Vitaliy [ 2024 Nov 06 ] |
Hi, |
Comment by Vladislavs Sokurenko [ 2024 Nov 14 ] |
From the description it might seem related to https://github.com/libevent/libevent/pull/184 |
Comment by Vladislavs Sokurenko [ 2025 Feb 18 ] |
Could you please be so kind and check if |
Comment by Vladislavs Sokurenko [ 2025 Mar 06 ] |
Hard to say for sure, to know exactly would need to see log and what those macros resolve to, if it was good DNS name then c-ares could help, also it might work with test item as it still uses glibc resolver. |