resolv.conf points to 127.0.0.x, when using systemd-resolved, right? Did you restart zabbix-server after any of the DNS changes? (Asking because I have no idea if that libevent caches some settings while zabbix-server service first starts)
Based on your tests above at least the caching doesn't work in this case. (Edit: rather, the libevent DNS resolution is not affected by the caching)
In https://libevent.org/doc/dns_8h.html there is some description about the working of DNS resolution.
Maybe capturing and analyzing the DNS traffic on the server also gives some insight what happens.
Markku
Based on your tests above at least the caching doesn't work in this case. (Edit: rather, the libevent DNS resolution is not affected by the caching)
In https://libevent.org/doc/dns_8h.html there is some description about the working of DNS resolution.
Maybe capturing and analyzing the DNS traffic on the server also gives some insight what happens.
Markku

Comment