From owner-freebsd-questions  Tue Apr 23 16:35:39 2002
Delivered-To: freebsd-questions@freebsd.org
Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6])
	by hub.freebsd.org (Postfix) with ESMTP id AD6E637B41A
	for <freebsd-questions@freebsd.org>; Tue, 23 Apr 2002 16:35:15 -0700 (PDT)
Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000)
	id 651CF901A1D; Tue, 23 Apr 2002 19:35:14 -0400 (EDT)
Date: Tue, 23 Apr 2002 19:35:14 -0400
From: mpd <mpd@rochester.rr.com>
To: chip.wiegand@simrad.com
Cc: freebsd-questions@freebsd.org
Subject: Re: hostname problem, apparently only in X
Message-ID: <20020423193514.A18995@rochester.rr.com>
References: <OF8A2628B2.054EA2A9-ON88256BA4.0080842C-88256BA4.0080E561@simrad.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <OF8A2628B2.054EA2A9-ON88256BA4.0080842C-88256BA4.0080E561@simrad.no>; from chip.wiegand@simrad.com on Tue, Apr 23, 2002 at 04:27:19PM -0700
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG

On Tue, Apr 23, 2002 at 04:27:19PM -0700, chip.wiegand@simrad.com wrote:
> mpd <mpd@rochester.rr.com> wrote on 04/23/2002 04:07:26 PM:
> 
> > On Tue, Apr 23, 2002 at 03:53:54PM -0700, chip.wiegand@simrad.com wrote:
> > > I seem to be seeing some new errors I haven't seen in other installs. 
> This
> > > time its in a
> > > term window in X. When I try to run cvsup cvsupfile I get the 
> following
> > > message -
> > >
> > > Cannot get IP address of my own host - - is it's host name correct?
> > >
> > > I don't get this when I run from the console, only when in X. Maybe 
> this
> > > is related to a
> > > problem with X itself? When I shutdown X the messages on the console 
> show
> > > -
> > >
> > > waiting for xserver to shut down
> > > xauth: (argv):1: bad display name "cwiegand2:0" in "remove" command
> > >
> > > when I enter hostname at the console I get
> > > cwiegand2
> > >
> > > Any idea what I should do about this?
> > 
> > Is that the *real* hostname (i.e. is cwiegand2 returned when you
> > do an nslookup on your IP?) or just some name you gave it?
> 
> When I do nslookup with my ipaddress I get 
> Can't find server name for address 157.237.xx.xxx: nonexistant host/domain
> Server: Cache02.ns.uu.net
> Address: 198.x.x.x
> Cache02.ns.uu.net can't find 157.237.65.118: nonexistant host/domain
> 
> We have a dhcp server, NT, ip 157.237.xx.xxx. My freebsd box gets it's 
> info from that dhcp server.

Including the hostname?

The hostname should be fully qualified, or at least listed in /etc/hosts.
I assume doing an nslookup on 'cwiegand2' doesn't find anything.
Try adding it to /etc/hosts if it isn't already, and make sure 'hosts'
is listed before 'bind' in /etc/host.conf (which I believe is default.)

> 
> --
> Chip
> 
> 

mike
-- 
___________________________________________________________
 
Little Girl: "POKEY WHAT DOES IT MEAN WHEN THE LADY IS NAKED AND THE
	MAN IS ALSO NAKED AND THEY ARE HUGGING LIKE THAT???"
Pokey the Penguin: "COVER YOUR EYES CHILD! I WILL EXPLAIN LATER"
	- from "POKEY HAS UNTERNET"

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message