Subject: Re: bad myname/hostname values
To: era eriksson <reriksso@cc.helsinki.fi>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 03/12/1997 09:37:06
> > You must have the same entries in both /etc/hosts and /etc/myname like
> > /etc/myname
> > netbsd.anarchy-x.com
>
> I was under the impression that by convention you would only have the
> actual hostname, not the domain name here? The domain goes in
> /etc/defaultdomain, right?
I'd put both. that way if anything ever looks for the fully-qualified
domain name, it gets found quickly.
> What if you're only networked by means of dynamic-IP PPP? Then you
> can't put any numbers in /etc/hosts, other than 127.0.0.1, or can you?
> (Why do I see 127.0.0.0 here, doesn't that mean the entire netblock?)
You can do whatever you want. you can just get yourself in a mess. :-)
127.X numbers should be fine, but I think you're right that 127.0.0.0
means the whole net block, and shouldn't really be there.
> > /etc/hosts
> > 127.0.0.0 localhost localhost.anarcht-x.com
> > 100.244.7.17 netbsd netbsd.anarchy-x.com
I have:
127.0.0.1 localhost localhost.stanford.edu pokey pokey.stanford.edu
which works with my dynamic IP address. I just can't really send or
receive mail (send as I'd have to fake the header so the mail replies
went to a permanent address, and can't receive as my sendmail isn't
configured to be something other than pokey, 127.0.0.1).
Take care,
Bill