Create DNS thread

When possible we should use DNS hostnames instead of IP addresses as
logfile names.  But gethostbyaddr() can block indefinitely, so run that
command from a dedicated thread.  If it blocks, we just write to the ip
address name.

Signed-off-by: Joern Engel <joern@logfs.org>
2 files changed