On 2011-02-17 09:56:35 +0000, Jonathan Plews wrote:
> I think that, unless it explicitly set, the hostname is derived form DNS
> lookups.

No, I think that $HOST is obtained from /etc/hostname (AFAIK, it is
set by Debian at installation time).

> you can test this with changes to /etc/hosts, hostname -f and the string
> exim gives on connect will be the same.
> 
> x.x.x.x    host   host.domain.tld - will report just 'host'

This is incorrect. You should not do this, see hosts(5) man page.

> x.x.x.x    host.domain.tld   host - will report 'host.domain.tld'

"hostname -f" will report host.domain.tld, but this is not $HOST
(which is used by monit).

-- 
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to