On Thu, 7 May 2009 20:26:40 -0400, Daniel Underwood <djuatde...@gmail.com>
> 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"?
It simply associates the given hostname to that IP adress. This
enables the system to resolve to this IP when the "literal" name
is given. This resolution is one of the basic principles.
Allthough the line works, it should be formed this way (or, it
should be two lines):
127.0.0.1 <hostname>.<domain> <hostname>
Note the dot. In your case, it would be
127.0.0.1 bsdbox.my.domain bsdbox
This enables the following resolve patterns:
bsdbox -----> 127.0.0.1
bsdbox.my.domain -----> 127.0.0.1 (You've got only this)
The first one is the "alias" / "short name" of the host, its
hostname. The second one is the "full name" including the
hostname and the domainname.
% man hosts
for a much better explaination. :-)
An addition: It's important that the system can resolve "localhost",
too, because that's an important "reserved literal name". For
example, the CUPS often addresses "localhost:631" (if I
remember correctly, I use apsfilter). Furthermore, the system's
mail subsystem relies on such settings.
So you could add or complete:
It can cause big (stupid) problems if you miss them. :-)
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"