Gentoo Archives: gentoo-user

From: Bayrouni <bayrouni@×××××××.be>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] hostname and domainname
Date: Mon, 19 Feb 2007 11:14:32
Message-Id: 45D98627.2090608@brutele.be
In Reply to: Re: [gentoo-user] hostname and domainname by Etaoin Shrdlu
1 Etaoin Shrdlu a écrit :
2 > On Monday 19 February 2007 11:32, Bayrouni wrote:
3 >
4 >> Hello all,
5 >>
6 >> cat /etc/conf.d.hostname
7 >> # /etc/conf.d/hostname
8 >>
9 >> # Set to the hostname of this machine
10 >> HOSTNAME="MYHOST"
11 >>
12 >> and cat /etc/conf.d/domainname
13 >> DNSDOMAIN="MYDOMAIN"
14 >>
15 >> The hostname service is added to the /etc/init.d/ with rc-update,
16 >>
17 >> but the commande hostname give:
18 >> #hostname
19 >> MYHOST
20 >>
21 >> and
22 >> # hostname -f
23 >> MYHOST
24 >>
25 >> I tried to add the domainname service:
26 >> sudo rc-update add domainname default
27 >> * rc-update: '/etc/init.d/domainname' not found; aborting
28 >>
29 >> What is wrong or missing in my configuration ?
30 >
31 > DNS domain name is not set via /etc/conf.d/domainname anymore. You should
32 > use /etc/conf.d/net for that.
33
34 I added this line in /etc/conf.d/net:
35 dns_domain_lo="MY_DOMAIN"
36
37
38 I restarted the net.lo but still the same result:
39 # domainname
40 (none)
41
42 # hostname and hostname -f
43 MY_HOST
44
45 My DNS server is running but it works only as dns cache server.
46
47 So, do I need to configure it as DNS for this machine and the others in
48 LAN to have hostname and domainname commands working correctly?
49
50 Thanks
51
52
53
54
55
56 --
57 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] hostname and domainname Etaoin Shrdlu <shrdlu@×××××××××××××.org>
Re: [gentoo-user] hostname and domainname Astolfo Bugatti <astolfobugatti@××××××.it>