On Saturday 01 December 2007, Etaoin Shrdlu wrote:
> On Saturday 1 December 2007, Kevin O'Gorman wrote:
> > I've got my own domain and domain server.  I've just run into a
> > problem about the appropriate settings for hosts and domains, and it's
> > messing up a few things in my postfix setup.
> >
> > The gentoo instructions say to set /etc/conf.d/hostname to the host
> > name only.  It gets passed to sethostname(2) unchanged by
> > /etc/init.d/hostname. I did it.
> > The gentoo instructions say to put a domain name, if needed, into
> > /etc/conf.d/net.  It seems to get used in network setup.  I did it.
> >
> > Nothing seems to be set into whatever it is that setdomainname(2) is
> > used for.
> > My mailx mailer seems to put "localdomain" on the sender address when
> > my crontab entries call it.  Maybe because it sees that
> > getdomainname(2) comes up empty.
> >
> > What's the right way to set this up?  Should I just cobble my proper
> > domain into setdomainname(2)?  Is there a right way?  Is there a
> > better way?
>
> Try adding the following line to /etc/hosts:
>
> a.b.c.d  hostname.your.domain  hostname
>
> of course, replacing a.b.c.d with your correct ip address.
>
> I don't know whether this is related to your problem, but it usually
> solves the domainname: (none) problem.

Is this meant to be the LAN private address, or the Internet address of the 
host?

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to