public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] hostname and domainname
@ 2007-02-19 10:32 Bayrouni
  2007-02-19 10:47 ` Dale
  2007-02-19 11:27 ` Etaoin Shrdlu
  0 siblings, 2 replies; 11+ messages in thread
From: Bayrouni @ 2007-02-19 10:32 UTC (permalink / raw
  To: gentoo-user

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 ?

Thanks
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 10:32 [gentoo-user] hostname and domainname Bayrouni
@ 2007-02-19 10:47 ` Dale
  2007-02-19 11:27 ` Etaoin Shrdlu
  1 sibling, 0 replies; 11+ messages in thread
From: Dale @ 2007-02-19 10:47 UTC (permalink / raw
  To: gentoo-user

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 ?
>
> Thanks
>   

This is how I have mine set to smoker:

> # /etc/conf.d/hostname
>
> # Set to the hostname of this machine
> HOSTNAME="smoker"

Replace smoker with the name you want.  I would assume the domainname
would be set the same way.

Hope that helps.

Dale

:-)  :-)  :-)


-- 
www.myspace.com/dalek1967

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:27 ` Etaoin Shrdlu
@ 2007-02-19 11:12   ` Bayrouni
  2007-02-19 11:23     ` Astolfo Bugatti
  2007-02-19 11:52     ` Etaoin Shrdlu
  0 siblings, 2 replies; 11+ messages in thread
From: Bayrouni @ 2007-02-19 11:12 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:12   ` Bayrouni
@ 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
  1 sibling, 2 replies; 11+ messages in thread
From: Astolfo Bugatti @ 2007-02-19 11:23 UTC (permalink / raw
  To: gentoo-user

for apply the changes
reboot your system!!


On Mon, 19 Feb 2007 12:12:39 +0100
Bayrouni <bayrouni@brutele.be> wrote:

> 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
> 


-- 
Astolfo Bugatti <astolfobugatti@libero.it>
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  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
  1 sibling, 1 reply; 11+ messages in thread
From: Etaoin Shrdlu @ 2007-02-19 11:27 UTC (permalink / raw
  To: gentoo-user

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.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:52     ` Etaoin Shrdlu
@ 2007-02-19 11:46       ` Bayrouni
  2007-02-19 12:24         ` Etaoin Shrdlu
  0 siblings, 1 reply; 11+ messages in thread
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	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:12   ` Bayrouni
  2007-02-19 11:23     ` Astolfo Bugatti
@ 2007-02-19 11:52     ` Etaoin Shrdlu
  2007-02-19 11:46       ` Bayrouni
  1 sibling, 1 reply; 11+ messages in thread
From: Etaoin Shrdlu @ 2007-02-19 11:52 UTC (permalink / raw
  To: gentoo-user

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.

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	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:23     ` Astolfo Bugatti
@ 2007-02-19 11:54       ` Dale
  2007-02-19 12:15       ` Etaoin Shrdlu
  1 sibling, 0 replies; 11+ messages in thread
From: Dale @ 2007-02-19 11:54 UTC (permalink / raw
  To: gentoo-user

Astolfo Bugatti wrote:
> for apply the changes
> reboot your system!!
>   
>
>   

Reboot?  This is Linux.  There has to be another way to make it see the
changes.

Dale

:-~  :-~

-- 
www.myspace.com/dalek1967

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 12:24         ` Etaoin Shrdlu
@ 2007-02-19 12:03           ` Bayrouni
  0 siblings, 0 replies; 11+ messages in thread
From: Bayrouni @ 2007-02-19 12:03 UTC (permalink / raw
  To: gentoo-user

Etaoin Shrdlu a écrit :
> On Monday 19 February 2007 12:46, Bayrouni wrote:
> 
>>
>>
>> but domainname --> (none)
> 
> domainname does NOT show the DNS domain.
> Use dnsdomainname or domainname -d instead.

All right.
dnsdomainname and domainname -d --->  myhost.my.domain

Thanks again
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:23     ` Astolfo Bugatti
  2007-02-19 11:54       ` Dale
@ 2007-02-19 12:15       ` Etaoin Shrdlu
  1 sibling, 0 replies; 11+ messages in thread
From: Etaoin Shrdlu @ 2007-02-19 12:15 UTC (permalink / raw
  To: gentoo-user

On Monday 19 February 2007 12:23, Astolfo Bugatti wrote:

> for apply the changes
> reboot your system!!

This is not windows. The /etc/hosts trick works as soon as you finish 
editing the file, without the need to restart anything.
I guess other methods would require network restart, but definitely not a 
reboot. The only thing that needs a reboot is when you want to use a new 
or different kernel.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] hostname and domainname
  2007-02-19 11:46       ` Bayrouni
@ 2007-02-19 12:24         ` Etaoin Shrdlu
  2007-02-19 12:03           ` Bayrouni
  0 siblings, 1 reply; 11+ messages in thread
From: Etaoin Shrdlu @ 2007-02-19 12:24 UTC (permalink / raw
  To: gentoo-user

On Monday 19 February 2007 12:46, Bayrouni wrote:

> 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)

domainname does NOT show the DNS domain.
Use dnsdomainname or domainname -d instead.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-02-19 12:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox