1 |
Anthony E Caudel wrote: |
2 |
> Phil Sexton wrote: |
3 |
> |
4 |
>>Anthony E Caudel wrote: |
5 |
>> |
6 |
>>>Mike wrote: |
7 |
>>> |
8 |
>>> |
9 |
>>>>Anthony E. Caudel wrote: |
10 |
>>>> |
11 |
>>>> |
12 |
>>>>>As of baselayout-1.12.4, the domainname init script is no longer used |
13 |
>>>>>and the Gentoo Handbook no longer tells how to set the domainname. |
14 |
>>>>>domainname now returns "(none)" |
15 |
>>>>> |
16 |
>>>>>/etc/conf.d/net.example talks about setting up dns_domain but if |
17 |
>>>>>this is |
18 |
>>>>>used, it overwrites /etc/resolv.conf. |
19 |
>>>>> |
20 |
>>>>>So how is the domainname now set? |
21 |
>>>>> |
22 |
>>>>>Tony |
23 |
>>>> |
24 |
>>>>/etc/hosts ? |
25 |
>>> |
26 |
>>> |
27 |
>>>Well, perhaps. It is in my /etc/hosts. But domainname still returns |
28 |
>>>(none) |
29 |
>>> |
30 |
>>>Tony |
31 |
>> |
32 |
>>You should stop using /etc/hostname and use /etc/conf.d/hostname |
33 |
>> |
34 |
> |
35 |
> |
36 |
> I don't use /etc/hostname and I DO use /etc/conf.d/hostname. What has |
37 |
> this to do with the domainname? Are they both set there? |
38 |
> |
39 |
> Tony |
40 |
|
41 |
I thought domainname was set in /etc/hosts. I put the whole kaboodle in |
42 |
it and it seems to work OK. |
43 |
|
44 |
Here is my /etc/conf.d/hostname: |
45 |
# Set to the hostname of this machine |
46 |
HOSTNAME="uilleann.fancypiper.info" |
47 |
|
48 |
And my /etc/hosts: |
49 |
# /etc/hosts: This file describes a number of hostname-to-address |
50 |
# mappings for the TCP/IP subsystem. It is mostly |
51 |
# used at boot time, when no name servers are running. |
52 |
# On small systems, this file can be used instead of a |
53 |
# "named" name server. Just add the names, addresses |
54 |
# and any aliases to this file... |
55 |
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 |
56 |
2003/08/04 20:12:25 azarah Exp $ |
57 |
# |
58 |
|
59 |
127.0.0.1 localhost local.domain |
60 |
192.168.0.1 dsl modem |
61 |
192.168.0.2 gravity.twi-31o2.org gravity |
62 |
192.168.0.3 bones.fancypiper.info bones |
63 |
192.168.0.4 tinwhistle.fancypiper.info tinwhistle |
64 |
192.168.0.5 uilleann.fancypiper.info uilleann |
65 |
#192.168.0.6 Windows_XP_Pro.fancypiper.info windowsxppro |
66 |
|
67 |
And resopnse to hostname command: |
68 |
# uilleann / # hostname |
69 |
uilleann.fancypiper.info |
70 |
|
71 |
<shrug> |
72 |
|
73 |
I'm no expert, but that was what I gleaned when I read the docs and the |
74 |
emerge e-mails. |
75 |
|
76 |
-- |
77 |
Phil Sexton |
78 |
My Home Page: http://fancypiper.info/ |
79 |
Free tunes: ftp://fancypiper.info/ |
80 |
Naomi's Fancy: http://www.naomisfancy.net/ |
81 |
Our 2nd CD: http://www.cdbaby.com/naomisfancy/ |
82 |
-- |
83 |
gentoo-user@g.o mailing list |