[rsyslog] How rsyslog derives hostname
david at lang.hm
david at lang.hm
Thu Mar 4 21:13:10 CET 2010
or there may be a services-switch file
David Lang
On Wed, 3 Mar 2010, Sayan Chowdhury wrote:
> Hello Harry,
> Look at your /etc/host.conf file, it's most probably set up to look at the
> /etc/hosts file before the name servers.
> Regards,
> Sayan
>
> On Wed, Mar 3, 2010 at 10:33 PM, Rainer Gerhards
> <rgerhards at hq.adiscon.com>wrote:
>
>>> -----Original Message-----
>>> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
>>> bounces at lists.adiscon.com] On Behalf Of Harry Putnam
>>> Sent: Wednesday, March 03, 2010 6:01 PM
>>> To: rsyslog at lists.adiscon.com
>>> Subject: Re: [rsyslog] How rsyslog derives hostname
>>>
>>> "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=ab431f7c
>>> ddfda4
>>>> 1b689e6ab4819b5ffe031e52fb;hb=HEAD#l1331
>>>
>>> Looks pretty complicated... gack.
>>>
>>> Thanks... Apparently somewhere in the workings of gethostname() the
>>> /etc/hosts file is scanned.
>>
>> My (uneducated) guess is that this is distro/version specific.
>>
>> Raienr
>> _______________________________________________
>> rsyslog mailing list
>> http://lists.adiscon.net/mailman/listinfo/rsyslog
>> http://www.rsyslog.com
>>
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
>
More information about the rsyslog
mailing list