<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Synthetic DNS timeouts in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Synthetic-DNS-timeouts/m-p/202153#M683</link>
    <description>&lt;P&gt;Great Tip&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 21:40:11 GMT</pubDate>
    <dc:creator>ChadTurner</dc:creator>
    <dc:date>2023-01-10T21:40:11Z</dc:date>
    <item>
      <title>Synthetic DNS timeouts</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Synthetic-DNS-timeouts/m-p/191009#M462</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;So, I imagined something was wrong with Dynatrace, but I believe I quickly found the reason for this behaviour:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Dynatrace times out DNS resolution at 5 seconds.&lt;/LI&gt;
&lt;LI&gt;Linux apparently retransmits DNS queries after 5 seconds...&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;There are two solutions for this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You change the default Linux behaviour, changing the DNS timeout to something lower.&lt;/LI&gt;
&lt;LI&gt;Dynatrace can give access to an "advanced mode" where DNS timeouts can be reconfigured.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;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:&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Dynatrace-product-ideas/DNS-timeout-for-HTTP-Monitor-should-be-1-second/idi-p/191008" target="_blank" rel="noopener"&gt;https://community.dynatrace.com/t5/Dynatrace-product-ideas/DNS-timeout-for-HTTP-Monitor-should-be-1-second/idi-p/191008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 14:26:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Synthetic-DNS-timeouts/m-p/191009#M462</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2022-07-21T14:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic DNS timeouts</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Synthetic-DNS-timeouts/m-p/202153#M683</link>
      <description>&lt;P&gt;Great Tip&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 21:40:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Synthetic-DNS-timeouts/m-p/202153#M683</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-10T21:40:11Z</dc:date>
    </item>
  </channel>
</rss>

