Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: "hostname -d" returns no domainname
Date: Sat, 27 May 2006 03:26:38
Message-Id: loom.20060526T114428-281@post.gmane.org
In Reply to: Re: [gentoo-user] "hostname -d" returns no domainname by Etaoin Shrdlu
1 Etaoin Shrdlu <shrdlu <at> unlimitedmail.org> writes:
2
3 > I seem to remember that this was somehow related to /etc/hosts, look:
4 >
5 > # cat /etc/hosts
6 > 10.0.0.10 mybox mybox.my.domain
7 >
8 > # hostname -d
9 > #
10 > # (modify /etc/hosts)
11 > # cat /etc/hosts
12 > 10.0.0.10 mybox.my.domain mybox
13 >
14 > # hostname -d
15 > my.domain
16
17 Great, this helped!
18
19 I now have:
20
21 alexander@blatt ~ $ grep -v \# /etc/hosts | grep -v '^$'
22 127.0.0.1 blatt.bei.digitalprojects.com blatt
23 127.0.0.1 localhost
24 ::1 ip6-localhost ip6-loopback
25 fe00::0 ip6-localnet
26 ff00::0 ip6-mcastprefix
27 ff02::1 ip6-allnodes
28 ff02::2 ip6-allrouters
29 ff02::3 ip6-allhosts
30 213.133.109.44 new.email-server.info
31
32 And:
33
34 alexander@blatt ~ $ hostname -d
35 bei.digitalprojects.com
36
37 But I'd still like to know what /etc/conf.d/domainname does... Or rather: Is
38 supposed to do :)
39
40 Alexander Skwar
41 --
42 There is brutality and there is honesty. There is no such thing as brutal
43 honesty.
44
45 --
46 gentoo-user@g.o mailing list