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 |