<p dir="ltr">Syslog-ng doesn&#39;t use an asynchronous dns resolver, but rather it uses the libc one as it wants to keep the ordering of messages.</p>
<p dir="ltr">However it uses an inprocess DNS cache, that should mitigate most dns latency issues as hosts that generate logs should already be in the cache anyway.</p>
<p dir="ltr">If you can&#39;t trust that the dns will work, just disable dns resolution eg use-dns(no) or use persist-only dns caching and populate /etc/hosts with those you want to see with names.</p>
<p dir="ltr"><a href="https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/example-local-dns.html">https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/example-local-dns.html</a></p>
<p dir="ltr">With regards to dns stalling all sources, no its not as long as syslog-ng is running in threaded mode. Only the affected worker is stalled the others will continue.</p>
<div class="gmail_quote">On Aug 22, 2015 5:37 PM, &quot;David Hauck&quot; &lt;<a href="mailto:davidh@netacquire.com">davidh@netacquire.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On <a href="mailto:yslog-ng-bounces@lists.balabit.hu">yslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Scheidler,, <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> wrote:<br>
&gt; Earlier syslog-ng immediately exited at startup, now it is considering<br>
&gt; dns resolution errors just like connection failures so time-reopen applies.<br>
<br>
OK, thx.<br>
<br>
BTW, I was reading about the DNS resolver blocking the logger (during resolutions, which, in situations where the lookup fails, could result in significant time). What does this mean exactly? Are all destinations/sources blocked during this time?<br>
<br>
&gt; Time-reopen defaults to 60 seconds as I remember as well and I can&#39;t remember any patch that would have changed it.<br>
<br>
Thx also - I did locate my configuration setting for this and see that the distribution I&#39;m using resets this default to 10s (so everything&#39;s working fine here).<br>
<br>
&gt; On Aug 22, 2015 1:01 AM, &quot;David Hauck&quot; &lt;<a href="mailto:davidh@netacquire.com">davidh@netacquire.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;       Hi Fabien,<br>
&gt;<br>
&gt;       On Monday, June 15, 2015 7:08 AM, I wrote:      &gt; On Monday, June 15, 2015<br>
&gt; 12:50 AM Fabien Wernli wrote:         &gt;&gt; Hi David,    &gt;&gt;      &gt;&gt; On Fri, Jun 12, 2015<br>
&gt; at 05:09:03PM +0000, David Hauck wrote:       &gt;&gt;&gt; Starting syslog-ng: Error<br>
&gt; resolving hostname;   &gt;&gt;&gt; host=&#39;test.nacc.netacquire.dom&#39; Error<br>
&gt; initializing message pipeline;        &gt;&gt;&gt;     &gt;&gt;&gt; Unfortunately, this results in<br>
&gt; the entire process failing to start.  &gt;&gt;      &gt;&gt; This looks a hell lot like<br>
&gt; a resolved issue [1] on github        &gt;&gt;      &gt;&gt; [1]<br>
&gt; <a href="https://github.com/balabit/syslog-ng/issues/318" rel="noreferrer" target="_blank">https://github.com/balabit/syslog-ng/issues/318</a>       &gt;       &gt; Yes, indeed! And<br>
&gt; this looks to have been included in v3.6.3 - I&#39;ll give this a try.<br>
&gt;<br>
&gt;       I&#39;ve finally had a chance to test this and see that it indeed fixes<br>
&gt; outright error. However, I now see the following messages appear every 10s:<br>
&gt;<br>
&gt;       20150821 15:54:37.994 err syslog(syslog-ng):Error resolving hostname; host=&#39;tester&#39;<br>
&gt;       20150821 15:54:37.994 err syslog(syslog-ng):Initiating connection failed, reconnecting; time_reopen=&#39;10&#39;<br>
&gt;<br>
&gt;       Is there a way to change the timeout? Is this the time-reopen global<br>
&gt; option? Besides DNS lookup retries, what other operations are subject<br>
&gt; to this timeout? Finally, the default (3.7) OSE documentation indicates the time-reopen default is 60s (not 10s like I&#39;m seeing).<br>
&gt;<br>
&gt;       Thanks,<br>
&gt;       -David<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
&gt; __ ______     Member info:<br>
&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>   Documentation:<br>
&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>       FAQ:<br>
&gt; <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>