Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: Re: Setting ones hostname Message-ID: <1494@toaster.SFSU.EDU> Date: 23 Apr 91 04:56:15 GMT References: <1991Apr17.031043.15876@cunixf.cc.columbia.edu> Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Distribution: usa Organization: San Francisco State University Lines: 39 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=-