From: Andreas Busse (andy@resi.waldorf-gmbh.de)
Date: 07/01/93


From: andy@resi.waldorf-gmbh.de (Andreas Busse)
Subject: NET-2 HOSTNAME [was: Re: setting hostname with net-2]
Date: 1 Jul 1993 07:20:00 GMT

In article <C9Fx1J.Ko7@cs.vu.nl>, wjstaal@cs.vu.nl (Staal WJ) writes:
|> cliff@trifid.astro.ucla.edu (UCLA Astronomy) writes:
|>
|> > I then upgraded to the new libc 4.4 and installed the net-2 base, std, and
|> > 010. I changed several of the network related files including /etc/HOSTNAME
|> > to reflect my. I can not get /bin/hostname to work properly. When I type
|> > Does anyone know what I'm doing wrong.... Please send e-mail since my news
|> > feed is not always very stable. Thanks in advanced.
|>
|> > cliff
|>
|> > cliff@trifid.astro.ucla.edu
|>
|> I have exactly the same problem. Could you forward any
|> replies to me?
|>
|> Wilco Staal
|> wjstaal@cs.vu.nl

Same question, same answer. I *know* there's a need for a NET-2-FAQ.
However, do the following:

1) /etc/host.conf:

order hosts, bind
multi

2) /etc/hosts:

your.ip.goes.here your_hostname_goes_here

3) Still not working ?

Look for the article called "NET-2 SETUP" I've posted some days ago.
If you can't find it, write to me. I can post it again, if people don't mind.
( 14 kBytes incl. a patched /bin/hostname)

Urgent ?

Ok, get net-010.tar.z. You'll find the sources of /bin/hostname.
Comment out the gethostbyname() call. Now it should work.

Andy