public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bayrouni <bayrouni@brutele.be>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] hostname and domainname
Date: Mon, 19 Feb 2007 12:12:39 +0100	[thread overview]
Message-ID: <45D98627.2090608@brutele.be> (raw)
In-Reply-To: <200702191227.23923.shrdlu@unlimitedmail.org>

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	other threads:[~2007-02-19 11:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 10:32 [gentoo-user] hostname and domainname Bayrouni
2007-02-19 10:47 ` Dale
2007-02-19 11:27 ` Etaoin Shrdlu
2007-02-19 11:12   ` Bayrouni [this message]
2007-02-19 11:23     ` Astolfo Bugatti
2007-02-19 11:54       ` Dale
2007-02-19 12:15       ` Etaoin Shrdlu
2007-02-19 11:52     ` Etaoin Shrdlu
2007-02-19 11:46       ` Bayrouni
2007-02-19 12:24         ` Etaoin Shrdlu
2007-02-19 12:03           ` Bayrouni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D98627.2090608@brutele.be \
    --to=bayrouni@brutele.be \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox