[comp.sys.next] Setting ones hostname

das15@cunixa.cc.columbia.edu (Douglas A Scott) (04/17/91)

I have a standalone 030 machine running 2.1.  I am not connected to the
Internet, but have UUCP access.  I am curious about certain inconsistancies in
the setting of my hostname.  My machine is "zardoz".

I have been able to set that so that when I type 'hostname', it gets it right,
and my login window upon startup has it right, and my mail understands where
it is originating--but some programs still call this machine 'localhost'.

For example, if I say 'ping zardoz', it says "host not known".  Same with
telnet (telnetting to myself).  Both understand if I use 'localhost' instead.

How can I get everything to agree on 'zardoz' as the name of my machine?  Is
there something special to do in NetInfoManager?

Thanks in advance.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Douglas Scott          Columbia University Computer Music Studio 
Internet: <doug@woof.columbia.edu> <das15@cunixa.cc.columbia.edu>
UUCP: ...!columbia!woof!zardoz!doug          Phone: (703)765-4771

eps@toaster.SFSU.EDU (Eric P. Scott) (04/23/91)

In article <1991Apr17.031043.15876@cunixf.cc.columbia.edu>
	das15@cunixa.cc.columbia.edu (Douglas A Scott) writes:
>For example, if I say 'ping zardoz', it says "host not known".  Same with
>telnet (telnetting to myself).  Both understand if I use 'localhost' instead.

Even with a single Ethernet interface, BSD TCP/IP behaves as if
it were multi-homed.  The "lo0" (loopback) interface serves
network 127, and "localhost" translates to [127.0.0.1]--the
nominal loopback address.  "zardoz" presumably translates to
your address on the Ethernet interface--they are normally NOT the
same.  Note that if your machine is not connected to an Ethernet,
the startup will DISABLE that interface.

>How can I get everything to agree on 'zardoz' as the name of my machine?  Is
>there something special to do in NetInfoManager?

The name of your machine is stored in a kernel variable; it's
initialized from the HOSTNAME= value in /etc/hostconfig, and
should be the unqualified name you use (or would use) on the
Internet.  The name you use for UUCP (/etc/uucp/UUCPNAME) can
differ.

If you swear you will never, ever use the Ethernet port, you
might try this:

1) Launch NetInfoManager
2) Click on machines
3) You should only see broadcasthost and localhost;
   If the name of your machine appears, nuke it with Command-r
4) Double-click on localhost
5) If name is not highlighted, click on it
6) Click on localhost
7) Click on menu item Directory>Append Value
8) Type your hostname and press Return
9) Command-s to save; Command-w to close; Command-q to quit

No promises, and no guarantees!

					-=EPS=-