# Logstash\_Dns timeout issue

**URL:** <https://discuss.elastic.co/t/logstash-dns-timeout-issue/104220>\
**Category:** Logstash\
**Created:** [October 17, 2017, 9:46am UTC](https://discuss.elastic.co/t/logstash-dns-timeout-issue/104220 "2017-10-17T09:46:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [October 17, 2017, 9:46am UTC](https://discuss.elastic.co/t/logstash-dns-timeout-issue/104220/1 "2017-10-17T09:46:24Z")

</div>

Hi All,

Is there any way to fix this issue every once in 15 days am getting this message

[2017-10-17T11:36:35,433][ERROR][logstash.filters.dns] DNS: timeout on resolving address. {:field=\>"hostnameDst", :value=\>"172._._._}  
[2017-10-17T11:36:48,029][ERROR][logstash.filters.dns] DNS: timeout on resolving address. {:field=\>"hostnameSrc", :value=\>"172._._._"}  
[2017-10-17T11:37:07,005][ERROR][logstash.filters.dns] DNS: timeout on resolving address. {:field=\>"hostnameSrc", :value=\>"172._._._"}  
[2017-10-17T11:37:29,236][ERROR][logstash.filters.dns] DNS: timeout on resolving address. {:field=\>"hostnameDst", :value=\>"172._._._"}

My logstash conf looks like this (logstash 5.4)

```auto
filter {
 if [src_ip] {
 mutate {
 add_field => { "hostnameSrc" => "%{src_ip}" }
  }
 }
 if [dst_ip] {
 mutate {
 add_field => { "hostnameDst" => "%{dst_ip}" }
 }
}
 dns {
 action => "replace"
 reverse => ["hostnameSrc"]
 hit_cache_size => "10000"
 hit_cache_ttl => "10000"
 failed_cache_size => "10000"
 failed_cache_ttl => "10"
 periodic_flush => "true"
 }
 dns {
 action => "replace"
 reverse => ["hostnameDst"]
 hit_cache_size => "10000"
 hit_cache_ttl => "10000"
 failed_cache_size => "10000"
 failed_cache_ttl => "10"
 periodic_flush => "true"
 }
}

```

Thanks in Advance,  
Raj

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 14, 2017, 9:46am UTC](https://discuss.elastic.co/t/logstash-dns-timeout-issue/104220/2 "2017-11-14T09:46:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
