On Wed, Dec 29, 1999 at 03:06:36PM -0800, aphro wrote:
> can someone tell me where syslog gets the hostname from?  its marking all
> my logs using the hostname localhost.
> 
> my $HOSTNAME is still set to 'aphro'
> 
> my /etc/hosts has a line:
> 127.0.0.1     localhost aphro
> 
> and i recently added a domain called 'aphro' to my local DNS so if i
> 'nslookup aphro' it resolves to 10.10.10.1
> 
> ever since i made the changes syslog thinkks the hostname is changed ..
> 
> ideas ??
> 
> 
> thanks!!
> 
> nate

The system hostname is set up at startup from /etc/init.d/hostname.sh
which is simply 

        hostname --file /etc/hostname

So I would first check that /etc/hostname contains the single word
aphro.

It seems that the syslogd gets its info from calling uname(2), which
at kernel level invokes sys_gethostname in /usr/src/linux/kernel/sys.c

HTH.

-- 
Regards,
Paul

Reply via email to