1 |
Hi, |
2 |
|
3 |
I know this is a recursive question, but this weekend I've been |
4 |
reisntalling a box, and, as I had some hostname problems, I decided to |
5 |
look for "the definitive answer".... I did not find it. |
6 |
|
7 |
Finally, decided to set hostname and dnsdomainname in /etc/conf.d/ |
8 |
files. But with that set, hostname -f gave me errors. |
9 |
|
10 |
So I set in /etc/hosts: |
11 |
|
12 |
127.0.0.1 locahost |
13 |
my_IP hostname.domain.com hostname |
14 |
|
15 |
|
16 |
And hostname commnad returned correct values. |
17 |
|
18 |
Is this the definitive way of doing it? |
19 |
|
20 |
I found some docs where is said that hosts file should look like: |
21 |
127.0.0.1 localhost hostname hostname.domain.com |
22 |
|
23 |
or other which says that is not needed to edit hosts file, that conf.d |
24 |
fles are enought for a correct fqdn... |
25 |
|
26 |
thanks in advance! |
27 |
|
28 |
-- |
29 |
Arnau Bria |
30 |
http://blog.emergetux.net |
31 |
Wiggum: Dispara a las ruedas Lou. |
32 |
Lou: eee, es un tanque jefe. |
33 |
Wiggum: Me tienes hartito con todas tus excusas. |
34 |
-- |
35 |
gentoo-user@g.o mailing list |