According to Bill Kocik: While burning my CPU.
>
>
> > I'm having trouble setting it up without an actual Internet connection. My
> > HOSTNAME=goddard, verified by using '$>hostname' and the /etc/HOSTNAME file.
> > But I keep getting e-mail from root from certain events that complaining
> > "gethostname() cannot find host goddard". I can't "$>ping goddard" or
> > "$>telnet goddard" either.
> >
> > I realize there is something to fix in my /etc/hosts file. I have only gone
> > so far as to make up an IP address with goddard as the machine name. What
> > else is there? What I've read so far all assume multiple machines or a
> > connection on the Internet.
> >
> > Is there a way to map 'goddard' back to 'localhost'?
>
> You might try the following lines in /etc/hosts:
>
> 127.0.0.1 localhost localhost.localdomain
> 127.0.0.1 goddard goddard.whateverdomain.domain_extension
> xxx.x.x.x goddard goddard.whateverdomain.domain_extension
and still linux will take the first entry it finds when ip numbers are used,
telnet 127.0.0.1 will result in entry number one being the host.
telnet goddard.whateverdomain.domain_extension will only use the first entry
again 127.0.0.1
>From /etc/hosts
# By the way, Arnt Gulbrandsen <[EMAIL PROTECTED]> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
As i see it, goddard is the name of the machine right?.
It seems to me that goddard needs to set up his machine only for loopback,
so just a simple configuration would do, if i am not missing anything that
is.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
and in /etc/hosts
# For loopbacking.
127.0.0.1 localhost
>
> Okay, so domain extensions aren't really called extensions, they're
> called top level domains but you see my point. Where I put in
> xxx.x.x.x put in whatever IP address you made up (I'm assuming you
> know you should be using 10.0.0.*).
>
>
> ---
> Bill Kocik
> Information Systems
> Medar, Inc.
> E-mail: [EMAIL PROTECTED]
> Web: http://www.medar.com
>
>
--
Regards Richard.
[EMAIL PROTECTED]