DNS for some host does not work

Is there a way to debug DNS inside the telegraf snmp plugin?

I have a host with the name host.name with the ip 192.168.XX.XX.

This config works:

[[inputs.snmp]]
  agents = [ "192.168.XX.XX:161" ]

This does not:

[[inputs.snmp]]
  agents = [ "host.name:161" ]

For other hosts the name work fine and I can do a

snmpwalk -v 1 -c public host.name:161 SNMPv2-MIB::sysName.0

So my best guess is that DNS resolution fails for some reason inside telegraf, so i would like to see more debug logs for that.