1 |
On Sun, 24 Dec 2006 12:09:13 +0000 |
2 |
Mick wrote: |
3 |
|
4 |
...[snip]... |
5 |
> > Now, I'm curious! On my system, I see the following: |
6 |
> > |
7 |
> > dnsdomainname osagesoftware.com |
8 |
> > hostname osage.osagesoftware.com |
9 |
> > hostname --fqdn osage.osagesoftware.com |
10 |
> > |
11 |
> > /etc/hosts contains: |
12 |
> > |
13 |
> > 192.168.1.10 osage.osagesoftware.com osage |
14 |
> > |
15 |
> > "strace -feopen" shows that /etc/hosts is opened by "hostname |
16 |
> > --fqdn" but not "hostname". |
17 |
> > |
18 |
> > What have I got wrong? |
19 |
> > |
20 |
> > Regards, |
21 |
> > |
22 |
> > David |
23 |
> > |
24 |
> > P.S. Greetings from one Kiewit alumni to another ... |
25 |
> |
26 |
> I discovered that the order of entries on the localhost line is |
27 |
> important to avoid hostname being identified as "none". I suppose in |
28 |
> your system it should be: |
29 |
> |
30 |
> 127.0.0.1 osage.osagesoftware.com osage localhost |
31 |
|
32 |
Curiouser and curiouser... |
33 |
|
34 |
Using your suggested line as the complete content of my /etc/hosts file |
35 |
has _no_ effect at all. |
36 |
|
37 |
As an experiment, I tried modifying /etc/conf.d/hostname to have just |
38 |
a test name, i.e. osagexxx, and restarting /etc/init.d/hostname. My |
39 |
system was not at all happy with that. |
40 |
|
41 |
### hostname ; hostname -s ; hostname --fqdn ; dnsdomainname |
42 |
|
43 |
osagexxx |
44 |
hostname: Unknown host |
45 |
hostname: Unknown host |
46 |
dnsdomainname: Unknown host |
47 |
|
48 |
-- |
49 |
gentoo-user@g.o mailing list |