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