* Re: [gentoo-user] hostname and domainname
@ 2007-02-19 11:46 99% ` Bayrouni
0 siblings, 0 replies; 1+ results
From: Bayrouni @ 2007-02-19 11:46 UTC (permalink / raw
To: gentoo-user
Etaoin Shrdlu a écrit :
> On Monday 19 February 2007 12:12, Bayrouni wrote:
>
>> I added this line in /etc/conf.d/net:
>> dns_domain_lo="MY_DOMAIN"
>>
>>
>> I restarted the net.lo but still the same result:
>> # domainname
>> (none)
>>
>> # hostname and hostname -f
>> MY_HOST
>>
>> My DNS server is running but it works only as dns cache server.
>>
>> So, do I need to configure it as DNS for this machine and the others
>> in LAN to have hostname and domainname commands working correctly?
>
> Ok, then you probably need to add your host's FQDN to the file /etc/hosts
> (eg, a.b.c.d myhost.my.domain myhost). I found it to be the only
> method to have hostname -f working.
Yes, after adding a.b.c.d myhost.my.domain myhost in /etc/hosts,
hostname --> myhost
and hostname -f --> myhost.my.domain
:)
but domainname --> (none)
Anyway, thanks for you and all others
Bayrouni
> Since the handbook does not mention this, I'm still thinking that I'm
> probably missing something, but even a fresh install has the problem
> until the /etc/hosts workaround is applied.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-02-19 10:32 [gentoo-user] hostname and domainname Bayrouni
2007-02-19 11:27 ` Etaoin Shrdlu
2007-02-19 11:12 ` Bayrouni
2007-02-19 11:52 ` Etaoin Shrdlu
2007-02-19 11:46 99% ` Bayrouni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox