[syslog-ng][PATCH] use_fqdn with gethostname() not returning fqdn
Balazs Scheidler
bazsi at balabit.hu
Wed May 18 12:25:11 CEST 2005
Hi,
Thanks for the contribution to syslog-ng and sorry for not answering so
long.
The problem I have with your patches that I'd prefer not to rely on
getaddrinfo() functions as I'm a bit afraid of portability issues. Are
there any other way (with gethostbyaddr for example) to determine
network local name?
On Sun, 2005-05-08 at 07:32 +0200, Sven Wegener wrote:
> Hi all!
>
> I came across this issue while I was setting up a central syslog-ng
> server that collects logs from several hosts in different domains. I
> wanted to use the use_fqdn option to distinguish every host in my logs
> better, but all I saw was just the plain hostname. Please find attached
> two patches, one against 1.6.7 and one against 1.9.4 that add support
> for fqdns. If gethostname() returns a name without dots it tries to
> lookup the fqdn of the host.
--
Bazsi
More information about the syslog-ng
mailing list