Re: [rsyslog] rsyslog tries to open network socket when (re)started

2020-10-05 Thread Mariusz Kruk via rsyslog
Digging through the sources it seems that rsyslogd firstly runs gethostbyname(). Then checks if it's not empty and has dots (in other words - checks if we have FQDN of local machine). And if it's not an FQDN, unless you set net.enableDNS=off (or run rsyslogd with -x, but that option is to be

[rsyslog] rsyslog tries to open network socket when (re)started

2020-10-03 Thread Fourhundred Thecat via rsyslog
Hello, every time I restart rsyslog, it tries to open network socket on my main interface eth0 and on 127.0.1.1 I assume this is to resolve my hostname ? I have added all IPs to /etc/hosts, so that rsyslog does not need to resolve any hostnames 127.0.0.1localhost 127.0.1.1myhost