Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] hostname and domainname
Date: Mon, 19 Feb 2007 11:29:28
Message-Id: 200702191252.58519.shrdlu@unlimitedmail.org
In Reply to: Re: [gentoo-user] hostname and domainname by Bayrouni
1 On Monday 19 February 2007 12:12, Bayrouni wrote:
2
3 > I added this line in /etc/conf.d/net:
4 > dns_domain_lo="MY_DOMAIN"
5 >
6 >
7 > I restarted the net.lo but still the same result:
8 > # domainname
9 > (none)
10 >
11 > # hostname and hostname -f
12 > MY_HOST
13 >
14 > My DNS server is running but it works only as dns cache server.
15 >
16 > So, do I need to configure it as DNS for this machine and the others
17 > in LAN to have hostname and domainname commands working correctly?
18
19 Ok, then you probably need to add your host's FQDN to the file /etc/hosts
20 (eg, a.b.c.d myhost.my.domain myhost). I found it to be the only
21 method to have hostname -f working.
22
23 Since the handbook does not mention this, I'm still thinking that I'm
24 probably missing something, but even a fresh install has the problem
25 until the /etc/hosts workaround is applied.
26 --
27 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] hostname and domainname Bayrouni <bayrouni@×××××××.be>