*BSD News Article 17704


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uwm.edu!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!kxn3796
From: kxn3796@hertz.njit.edu (Ken Nakata)
Newsgroups: comp.os.386bsd.questions
Subject: [NetBSD 0.8] Proper setup of network ?
Message-ID: <1993Jun30.030503.26508@njitgw.njit.edu>
Date: 30 Jun 93 03:05:03 GMT
Sender: news@njit.edu
Organization: New Jersey Institute of Technology, Newark, New Jersey
Lines: 30
Nntp-Posting-Host: hertz.njit.edu

Hi,

I'm having trouble with network configuration on NetBSD 0.8.

I used to use `pumpkin' as my local host name when I was using
386BSD 0.1 w/pk.0.2.3.  And I overwrote filesystem with NetBSD.
I found /etc/myname changed so that it now has `unknown.host.domain'
as local host name.  I wanted to use old name so I put `pumpkin'
into /etc/myname.  Then one of my local daemon dies on boot with
dumping core.  I looked into the code and narrowed the problem
down to gethostbyname().  gethostname() returns "pumpkin" but
gethostbyname("pumpkin") returns NULL and reference of returned
pointer to struct hostent, which is actually NULL, causes core dump.

I think my network setup is bogus.  I tried to set network files
such as /etc/hosts properly with _UNIX System Administration
Handbook_, by Nemeth, Snyder, and Seebass, 1989 Prentice-Hall,
but systems described in this book are different from 386BSD/NetBSD
and the book doesn't discuss networking principles (or I'm too
newbie to utilize the book).

Any, really any suggestions, pointers and/or whatever are *greatly*
appreciated.  Thank you for your time.

Ken Nakata
-- 
* I apologize if there are misuses of and/or impolite words or phrases in this
mail or post. They are not intended; I don't fully understand certain words or
each nuance of a phrase.    Any corrections for either English compositions or
contents are greatly appreciated.  Thank you.  Ken Nakata, CIS student, NJIT *