Running zabbix_agent2 5.4.5 on Ubuntu under Docker.
It doesn't matter what DNS server I put in the key, it always succeeds:
docker exec zabbixAgent2 zabbix_agent2 -t "net.dns.record[0.0.0.0,google.com,A]"
net.dns.record[0.0.0.0,google.com,A] [s|google.com A 172.217.5.110]
docker exec zabbixAgent2 zabbix_agent2 -t "net.dns.record[10.10.10.10,google.com,A]"
net.dns.record[10.10.10.10,google.com,A] [s|google.com A 142.250.72.206]
docker exec zabbixAgent2 zabbix_agent2 -t "net.dns.record[12,google.com,A]"
net.dns.record[12,google.com,A] [s|google.com A 216.58.222.14]