[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where is /etc/hosts supposed to come from?

On 2009-12-29 01:47:40 +0100, Vincent Lefevre wrote:
> On 2009-12-29 00:21:45 +0000, Sam Morris wrote:
> > As for mail, we already appear to have an /etc/mailname file for MTAs and 
> > MUAs to use for finding out the 'canonical' name of the host for message-
> > IDs and the like.
> /etc/mailname doesn't seem to be specified by POSIX, so that I doubt
> that all mail software uses it in practice (Mutt doesn't seem to use
> it... its way to get the FQDN is currently buggy, but that's another
> story).

BTW, the mailname(5) man page says:

    The file contains only one line describing the fully qualified
    domain name that the program wishing  to  get  the  mail  name
    should use (that is, everything after the @).

So, that would define the FQDN of your machine, i.e. what
"hostname -f" should return.

Vincent Lefèvre <vincent@vinc17.net> - 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)

Reply to: