hostname vs domainname

Auke Kok sofar at lunar-linux.org
Fri Mar 26 20:44:04 GMT 2004


Remco Lubbers wrote:
> Hi there,
> 
> according to /etc/init.d/hostname I am supposed to set a domainname via
> /etc/domainname, telling me no domainname has been set if I don't during boot.
> I would think that this means I should put solely my hostname in /etc/hostname,
> but if I do so e.g. Postfix starts complaining about not having a fully
> qualified domainname to work with.


postfix needs something like the following in /etc/hosts:

127.0.0.1    localhost
11.22.33.44  host.domain.tld host

you might be able to force these in /etc/postfix/main.cf though, but 
they are sane settings for a lot of programs.

sofar


More information about the Lunar mailing list