Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2009 22:39:56 -0500
From:      Andrew Gould <andrewlylegould@gmail.com>
To:        Daniel Underwood <djuatdelta@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xfce unable to lookup hostname
Message-ID:  <d356c5630905072039oeb03694kf96850a4ede90f78@mail.gmail.com>
In-Reply-To: <b6c05a470905071726m55294b95v6bc946c40fc8824a@mail.gmail.com>
References:  <b6c05a470905070614h5a665f8ai15b03a192666b1b9@mail.gmail.com> <d356c5630905070634p32f22c1m5086061fbd1c8178@mail.gmail.com> <b6c05a470905071726m55294b95v6bc946c40fc8824a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 7, 2009 at 7:26 PM, Daniel Underwood <djuatdelta@gmail.com>wrote:

> I added the line
>
> "127.0.0.1     bsdbox     bsdbox.my.domain"
>
> and now it works perfectly, thanks!
>
> Question: what does the line I added tell my computer? I.e., what does
> that line "do"?
>

The /etc/hosts file is used to map host names to IP addresses.  It is very
useful for assigning names to computers on your home network since those
computers are (probably) not mapped in a DNS system.

As you can see, an IP address, such as 127.0.0.1 (local host and bsdbox),
can be mapped to multiple names.

Andrew



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