Etaoin Shrdlu a écrit :
> On Monday 19 February 2007 11:32, Bayrouni wrote:
> 
>> Hello all,
>>
>> cat /etc/conf.d.hostname
>> # /etc/conf.d/hostname
>>
>> # Set to the hostname of this machine
>> HOSTNAME="MYHOST"
>>
>> and cat /etc/conf.d/domainname
>> DNSDOMAIN="MYDOMAIN"
>>
>> The hostname service is added to the /etc/init.d/ with rc-update,
>>
>> but the commande hostname give:
>> #hostname
>> MYHOST
>>
>> and
>> # hostname -f
>> MYHOST
>>
>> I tried to add the domainname service:
>> sudo rc-update add domainname default
>>  * rc-update: '/etc/init.d/domainname' not found; aborting
>>
>> What is wrong or missing  in my configuration ?
> 
> DNS domain name is not set via /etc/conf.d/domainname anymore. You should 
> use /etc/conf.d/net for that.

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?

Thanks





-- 
gentoo-user@gentoo.org mailing list

Reply via email to