[rsyslog] How rsyslog derives hostname
Harry Putnam
reader at newsguy.com
Wed Mar 3 18:00:46 CET 2010
"Rainer Gerhards" <rgerhards at hq.adiscon.com> writes:
>> He says rsyslog exclusively relies on what is returned by the os. Yes
>> but by what mechanism?
>
> gethostname(), what according to the man page is the mechanism to use ;)
>
> http://git.adiscon.com/?p=rsyslog.git;a=blob;f=runtime/net.c;h=ab431f7cddfda4
> 1b689e6ab4819b5ffe031e52fb;hb=HEAD#l1331
Looks pretty complicated... gack.
Thanks... Apparently somewhere in the workings of gethostname() the
/etc/hosts file is scanned.
Thanks.
More information about the rsyslog
mailing list