*BSD News Article 17720


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!network.ucsd.edu!swrinde!elroy.jpl.nasa.gov!usc!rutgers!njitgw.njit.edu!hertz.njit.edu!kxn3796
From: kxn3796@hertz.njit.edu (Ken Nakata)
Newsgroups: comp.os.386bsd.questions
Subject: Re: [NetBSD 0.8] Proper setup of network ?
Message-ID: <1993Jun30.060039.28572@njitgw.njit.edu>
Date: 30 Jun 93 06:00:39 GMT
References: <1993Jun30.030503.26508@njitgw.njit.edu>
Sender: news@njit.edu
Organization: New Jersey Institute of Technology, Newark, New Jersey
Lines: 36
Nntp-Posting-Host: hertz.njit.edu

In article <1993Jun30.030503.26508@njitgw.njit.edu> I wrote:
>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 should have written that actually whatever I put into /etc/myname,
it never works.  Executing "route add `hostname` localhost 0" always
gives me a "bad value" error.

>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.

Please help me!
Thanks in advance.

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 *