Syslog showing localhost, not the hostname

I'm running Debian Etch and recently (I can't say when, I've only just noticed it) syslog is recording 'localhost' as the system name rather than the computer's hostname. I've also noticed 'localhost' is sent by exim4 in its Hello/EHLO/HELO response.

The hostname command shows the hostname, as does /etc/hostname. /etc/hosts is unchanged from when it was recording correctly. Does anyone have any ideas as to why this behaviour has started?

I've tried searching but keep hitting false trails and dead ends, so it's time to as the experts.

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Syslog showing localhost,

I fixed this and it turned out to be an /etc/hosts problem after all.

I moved the 127.0.0.1 xxx line to after the LAN address line and restarted the affected services. All is now well :)

Syndicate content