# DNS for some host does not work

**URL:** <https://community.influxdata.com/t/dns-for-some-host-does-not-work/18944>\
**Category:** Telegraf\
**Tags:** telegraf, snmp\
**Created:** [March 17, 2021, 7:45pm UTC](https://community.influxdata.com/t/dns-for-some-host-does-not-work/18944 "2021-03-17T19:45:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![l33tname](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@l33tname](https://community.influxdata.com/u/l33tname)\
**Post date:** [March 17, 2021, 7:45pm UTC](https://community.influxdata.com/t/dns-for-some-host-does-not-work/18944/1 "2021-03-17T19:45:49Z")

</div>

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.
