Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2009 15:32:39 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Daniel Underwood <djuatdelta@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xfce unable to lookup hostname
Message-ID:  <20090507153239.600e1208.freebsd@edvax.de>
In-Reply-To: <b6c05a470905070614h5a665f8ai15b03a192666b1b9@mail.gmail.com>
References:  <b6c05a470905070614h5a665f8ai15b03a192666b1b9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 May 2009 09:14:24 -0400, Daniel Underwood <djuatdelta@gmail.com> wrote:
> In /etc/hosts there are two lines containing:
> 
> localhost localhost.my.domain

Really? No IP? I mean like

	::1		localhost
	127.0.0.1	localhost
	127.0.0.1	bsdbox.local bsdbox
	127.0.0.1	bsdbox.local.


 
> Since I'm connecting to the Internet through a dynamic-IP ISP without
> a reserved domain name, I have nothing with which to replace
> "my.domain".

You can replace it with anything that doesn't resolve, such
as ".local", ".localdomain", ".dingenskirchens"... :-)



> What should I do to resolve this issue? In a situation like this
> (note: I am behind a home router), is there actually anything I can
> replace "my.domain" with?

It's important that /etc/hosts defines the values for
localhost and your selected hostname (bsdbox), at least
with the 127.0.0.1 IP. You can add further IPs with the
same name if your machine spans a LAN (such as from
192.168.1.1).

You can check everything with

	% host localhost

and

	% host bsdbox

so it should resolve to 127.0.0.1.


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090507153239.600e1208.freebsd>