# Synthetic DNS timeouts

**URL:** <https://community.dynatrace.com/t/synthetic-dns-timeouts/35930>\
**Category:** Dynatrace Tips\
**Tags:** synthetic-monitoring\
**Created:** [July 20, 2022, 7:02pm UTC](https://community.dynatrace.com/t/synthetic-dns-timeouts/35930 "2022-07-20T19:02:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [July 20, 2022, 7:02pm UTC](https://community.dynatrace.com/t/synthetic-dns-timeouts/35930/1 "2022-07-20T19:02:01Z")

</div>

I have some synthetic measurements that were occasionally giving some DNS errors. These measurements were being made from a private synthetic location running on a Linux server.

I couldn’t imagine why they were occurring, so decided to dig further. As it was a private location, I just dumped all the DNS traffic.

To my surprise, there was the DNS query packet, than there was a second one after a little bit more than 5 seconds, and than a correct reply.

So, I imagined something was wrong with Dynatrace, but I believe I quickly found the reason for this behaviour:

1. Dynatrace times out DNS resolution at 5 seconds.
2. Linux apparently retransmits DNS queries after 5 seconds…

So, what seams to be happening is that being the timeouts from Dynatrace and the OS (Operating System) equal, Dynatrace will always give a timeout before the OS retries. This wouldn’t happen in Windows, as it apparently times out after 1 second.

There are two solutions for this:

1. You change the default Linux behaviour, changing the DNS timeout to something lower.
2. Dynatrace can give access to an “advanced mode” where DNS timeouts can be reconfigured.

Of course, I believe there might be additional impacts. I have also created a Product Idea, so that behaviour can be consistent when running namely HTTP monitors on different OS ActiveGates:  
[https://community.dynatrace.com/t5/Dynatrace-product-ideas/DNS-timeout-for-HTTP-Monitor-should-be-1-second/idi-p/191008](https://community.dynatrace.com/post/191008)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 10, 2023, 9:40pm UTC](https://community.dynatrace.com/t/synthetic-dns-timeouts/35930/2 "2023-01-10T21:40:11Z")

</div>

Great Tip&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)
