It does that in order to resolve its fully qualified domain name, as gethostname() as the syscall usually returns a short hostname. You should add the short hostname to /etc/hosts, with the long hostname listed first and the short nonqualified hostname as an alias. It should avoid the dns lookup and is good practice anyway. On Aug 24, 2015 6:44 PM, "Peter Volkov" <peter.volkov@gmail.com> wrote:
Hi guys. Whenever syslog-ng start without networking it hangs trying to resolve hostname it runs on (checked with tcpdump). Now I've tried to add use_dns(no); into configuration file but delay still in place:
options { use_dns(no); use_fqdn(no); }
I've tried to google, but still failed to find answer: Is there any way to disable this hostname resolution delay?
Thank in advance, -- Peter.
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq