public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to set domainname
@ 2006-08-16 19:51 Anthony E. Caudel
  2006-08-16 20:04 ` Mike
                   ` (5 more replies)
  0 siblings, 6 replies; 59+ messages in thread
From: Anthony E. Caudel @ 2006-08-16 19:51 UTC (permalink / raw
  To: Gentoo Mailing List

As of baselayout-1.12.4, the domainname init script is no longer used
and the Gentoo Handbook no longer tells how to set the domainname.
domainname now returns "(none)"

/etc/conf.d/net.example talks about setting up dns_domain but if this is
used, it overwrites /etc/resolv.conf.

So how is the domainname now set?

Tony
-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 19:51 [gentoo-user] How to set domainname Anthony E. Caudel
@ 2006-08-16 20:04 ` Mike
  2006-08-16 21:41   ` Anthony E. Caudel
  2006-08-17  5:07 ` Alexander Skwar
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 59+ messages in thread
From: Mike @ 2006-08-16 20:04 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel wrote:
> As of baselayout-1.12.4, the domainname init script is no longer used
> and the Gentoo Handbook no longer tells how to set the domainname.
> domainname now returns "(none)"
> 
> /etc/conf.d/net.example talks about setting up dns_domain but if this is
> used, it overwrites /etc/resolv.conf.
> 
> So how is the domainname now set?
> 
> Tony

/etc/hosts ?
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 20:04 ` Mike
@ 2006-08-16 21:41   ` Anthony E. Caudel
  2006-08-16 23:18     ` Ryan Tandy
  2006-08-16 23:48     ` Phil Sexton
  0 siblings, 2 replies; 59+ messages in thread
From: Anthony E. Caudel @ 2006-08-16 21:41 UTC (permalink / raw
  To: gentoo-user

Mike wrote:
> Anthony E. Caudel wrote:
>> As of baselayout-1.12.4, the domainname init script is no longer used
>> and the Gentoo Handbook no longer tells how to set the domainname.
>> domainname now returns "(none)"
>>
>> /etc/conf.d/net.example talks about setting up dns_domain but if this is
>> used, it overwrites /etc/resolv.conf.
>>
>> So how is the domainname now set?
>>
>> Tony
> 
> /etc/hosts ?

Well, perhaps.  It is in my /etc/hosts.  But domainname still returns (none)

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 21:41   ` Anthony E. Caudel
@ 2006-08-16 23:18     ` Ryan Tandy
  2006-08-16 23:48     ` Phil Sexton
  1 sibling, 0 replies; 59+ messages in thread
From: Ryan Tandy @ 2006-08-16 23:18 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel wrote:
> Well, perhaps.  It is in my /etc/hosts.  But domainname still returns (none)

By default, the 'domainname' command returns your NIS/YP domainname, 
which not many of us have.  Try 'dnsdomainname' instead - it may have 
the result you're looking for.

delta ~ # domainname
(none)
delta ~ # dnsdomainname
tarpman.homelinux.com
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 21:41   ` Anthony E. Caudel
  2006-08-16 23:18     ` Ryan Tandy
@ 2006-08-16 23:48     ` Phil Sexton
  2006-08-17  0:39       ` Anthony E. Caudel
  2006-08-17  1:57       ` Mike
  1 sibling, 2 replies; 59+ messages in thread
From: Phil Sexton @ 2006-08-16 23:48 UTC (permalink / raw
  To: gentoo-user

Anthony E Caudel wrote:
> Mike wrote:
> 
>>Anthony E. Caudel wrote:
>>
>>>As of baselayout-1.12.4, the domainname init script is no longer used
>>>and the Gentoo Handbook no longer tells how to set the domainname.
>>>domainname now returns "(none)"
>>>
>>>/etc/conf.d/net.example talks about setting up dns_domain but if this is
>>>used, it overwrites /etc/resolv.conf.
>>>
>>>So how is the domainname now set?
>>>
>>>Tony
>>
>>/etc/hosts ?
> 
> 
> Well, perhaps.  It is in my /etc/hosts.  But domainname still returns (none)
> 
> Tony

You should stop using /etc/hostname and use /etc/conf.d/hostname

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 23:48     ` Phil Sexton
@ 2006-08-17  0:39       ` Anthony E. Caudel
  2006-08-17  1:20         ` Phil Sexton
  2006-08-17  5:09         ` Alexander Skwar
  2006-08-17  1:57       ` Mike
  1 sibling, 2 replies; 59+ messages in thread
From: Anthony E. Caudel @ 2006-08-17  0:39 UTC (permalink / raw
  To: gentoo-user

Phil Sexton wrote:
> Anthony E Caudel wrote:
>> Mike wrote:
>>
>>> Anthony E. Caudel wrote:
>>>
>>>> As of baselayout-1.12.4, the domainname init script is no longer used
>>>> and the Gentoo Handbook no longer tells how to set the domainname.
>>>> domainname now returns "(none)"
>>>>
>>>> /etc/conf.d/net.example talks about setting up dns_domain but if
>>>> this is
>>>> used, it overwrites /etc/resolv.conf.
>>>>
>>>> So how is the domainname now set?
>>>>
>>>> Tony
>>>
>>> /etc/hosts ?
>>
>>
>> Well, perhaps.  It is in my /etc/hosts.  But domainname still returns
>> (none)
>>
>> Tony
> 
> You should stop using /etc/hostname and use /etc/conf.d/hostname
> 

I don't use /etc/hostname and I DO use /etc/conf.d/hostname.  What has
this to do with the domainname?  Are they both set there?

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  0:39       ` Anthony E. Caudel
@ 2006-08-17  1:20         ` Phil Sexton
  2006-08-17  5:10           ` Alexander Skwar
  2006-08-17  5:09         ` Alexander Skwar
  1 sibling, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17  1:20 UTC (permalink / raw
  To: gentoo-user

Anthony E Caudel wrote:
> Phil Sexton wrote:
> 
>>Anthony E Caudel wrote:
>>
>>>Mike wrote:
>>>
>>>
>>>>Anthony E. Caudel wrote:
>>>>
>>>>
>>>>>As of baselayout-1.12.4, the domainname init script is no longer used
>>>>>and the Gentoo Handbook no longer tells how to set the domainname.
>>>>>domainname now returns "(none)"
>>>>>
>>>>>/etc/conf.d/net.example talks about setting up dns_domain but if
>>>>>this is
>>>>>used, it overwrites /etc/resolv.conf.
>>>>>
>>>>>So how is the domainname now set?
>>>>>
>>>>>Tony
>>>>
>>>>/etc/hosts ?
>>>
>>>
>>>Well, perhaps.  It is in my /etc/hosts.  But domainname still returns
>>>(none)
>>>
>>>Tony
>>
>>You should stop using /etc/hostname and use /etc/conf.d/hostname
>>
> 
> 
> I don't use /etc/hostname and I DO use /etc/conf.d/hostname.  What has
> this to do with the domainname?  Are they both set there?
> 
> Tony

I thought domainname was set in /etc/hosts.  I put the whole kaboodle in 
it and it seems to work OK.

Here is my /etc/conf.d/hostname:
# Set to the hostname of this machine
HOSTNAME="uilleann.fancypiper.info"

And my /etc/hosts:
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 
2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1       localhost                       local.domain
192.168.0.1     dsl                             modem
192.168.0.2     gravity.twi-31o2.org            gravity
192.168.0.3     bones.fancypiper.info           bones
192.168.0.4     tinwhistle.fancypiper.info      tinwhistle
192.168.0.5     uilleann.fancypiper.info        uilleann
#192.168.0.6    Windows_XP_Pro.fancypiper.info  windowsxppro

And resopnse to hostname command:
# uilleann / # hostname
uilleann.fancypiper.info

<shrug>

I'm no expert, but that was what I gleaned when I read the docs and the 
emerge e-mails.

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 23:48     ` Phil Sexton
  2006-08-17  0:39       ` Anthony E. Caudel
@ 2006-08-17  1:57       ` Mike
  1 sibling, 0 replies; 59+ messages in thread
From: Mike @ 2006-08-17  1:57 UTC (permalink / raw
  To: gentoo-user

Phil Sexton wrote:
> Anthony E Caudel wrote:
>> Mike wrote:
>>
>>> Anthony E. Caudel wrote:
>>>
>>>> As of baselayout-1.12.4, the domainname init script is no longer used
>>>> and the Gentoo Handbook no longer tells how to set the domainname.
>>>> domainname now returns "(none)"
>>>>
>>>> /etc/conf.d/net.example talks about setting up dns_domain but if
>>>> this is
>>>> used, it overwrites /etc/resolv.conf.
>>>>
>>>> So how is the domainname now set?
>>>>
>>>> Tony
>>>
>>> /etc/hosts ?
>>
>>
>> Well, perhaps.  It is in my /etc/hosts.  But domainname still returns
>> (none)
>>
>> Tony
> 
> You should stop using /etc/hostname and use /etc/conf.d/hostname
> 
There is no /etc/hosts on my system we are using /etc/conf.d/hostname but the
domain name is still not set.

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



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 19:51 [gentoo-user] How to set domainname Anthony E. Caudel
  2006-08-16 20:04 ` Mike
@ 2006-08-17  5:07 ` Alexander Skwar
  2006-08-17  6:03   ` Alexander Skwar
  2006-08-17  6:22   ` Anthony E. Caudel
       [not found] ` <169ffc030608161354g5e8e9e28h3673983a72e4e5ae@mail.gmail.com>
                   ` (3 subsequent siblings)
  5 siblings, 2 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  5:07 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel schrieb:
> As of baselayout-1.12.4, the domainname init script is no longer used
> and the Gentoo Handbook no longer tells how to set the domainname.
> domainname now returns "(none)"
> 
> /etc/conf.d/net.example talks about setting up dns_domain but if this is
> used, it overwrites /etc/resolv.conf.
> 
> So how is the domainname now set?

See net.example.

# Setting name/domain server causes /etc/resolv.conf to be overwritten
# Note that if DHCP is used, and you want this to take precedence then
# set dhcp_ESSID="nodns"
#dns_servers_ESSID=( "192.168.0.1" "192.168.0.2" )
#dns_domain_ESSID="some.domain"
[...]
#nis_domain_eth0="domain"


The domainname is set with dns_domain or nis_domain.

Alexander Skwar
-- 
Jenkinson's Law:
	It won't work.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  0:39       ` Anthony E. Caudel
  2006-08-17  1:20         ` Phil Sexton
@ 2006-08-17  5:09         ` Alexander Skwar
  1 sibling, 0 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  5:09 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel schrieb:

> I don't use /etc/hostname and I DO use /etc/conf.d/hostname.  What has
> this to do with the domainname?  Are they both set there?

No, they are not.

Alexander Skwar
-- 
<Espy> you are baked
<knghtbrd> Espy: only half so
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  1:20         ` Phil Sexton
@ 2006-08-17  5:10           ` Alexander Skwar
  2006-08-17  5:31             ` Phil Sexton
  2006-08-17  5:37             ` Phil Sexton
  0 siblings, 2 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  5:10 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Anthony E Caudel wrote:
>> Phil Sexton wrote:
>> 
>>>Anthony E Caudel wrote:
>>>
>>>>Mike wrote:
>>>>
>>>>
>>>>>Anthony E. Caudel wrote:
>>>>>
>>>>>
>>>>>>As of baselayout-1.12.4, the domainname init script is no longer used
>>>>>>and the Gentoo Handbook no longer tells how to set the domainname.
>>>>>>domainname now returns "(none)"
>>>>>>
>>>>>>/etc/conf.d/net.example talks about setting up dns_domain but if
>>>>>>this is
>>>>>>used, it overwrites /etc/resolv.conf.
>>>>>>
>>>>>>So how is the domainname now set?
>>>>>>
>>>>>>Tony
>>>>>
>>>>>/etc/hosts ?
>>>>
>>>>
>>>>Well, perhaps.  It is in my /etc/hosts.  But domainname still returns
>>>>(none)
>>>>
>>>>Tony
>>>
>>>You should stop using /etc/hostname and use /etc/conf.d/hostname
>>>
>> 
>> 
>> I don't use /etc/hostname and I DO use /etc/conf.d/hostname.  What has
>> this to do with the domainname?  Are they both set there?
>> 
>> Tony
> 
> I thought domainname was set in /etc/hosts.

No, it's not. NIS doesn't use /etc/hosts for these things.

> Here is my /etc/conf.d/hostname:
> # Set to the hostname of this machine
> HOSTNAME="uilleann.fancypiper.info"

That's not a hostname. A hostname has no dots (.).



Alexander Skwar
-- 
<Espy> you are baked
<knghtbrd> Espy: only half so
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
       [not found] ` <169ffc030608161354g5e8e9e28h3673983a72e4e5ae@mail.gmail.com>
@ 2006-08-17  5:11   ` Alexander Skwar
  2006-08-17  6:02     ` Alexander Skwar
  2006-08-17  6:05     ` Phil Sexton
  0 siblings, 2 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  5:11 UTC (permalink / raw
  To: gentoo-user

Mark schrieb:
> On 16/08/06, Anthony E. Caudel <acaudel@gt.rr.com> wrote:
>> As of baselayout-1.12.4, the domainname init script is no longer used
>> and the Gentoo Handbook no longer tells how to set the domainname.
>> domainname now returns "(none)"
>>
>> /etc/conf.d/net.example talks about setting up dns_domain but if this is
>> used, it overwrites /etc/resolv.conf.
> 
> Adding this to /etc/conf.d/net will stop dhcpcd from overwriting
> /etc/resolv.conf
> dhcpcd_eth0="-R"
> 
> /etc/conf.d/domainname   .. for domain name.. as always ?

This file is obsolete. So, it's not "as always".

> /etc/conf.d/hostname  .. for host as always too ?

Yes.


Alexander Skwar
-- 
"The first rule of magic is simple.  Don't waste your time waving your
hands and hoping when a rock or a club will do."
		-- McCloctnik the Lucid
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:10           ` Alexander Skwar
@ 2006-08-17  5:31             ` Phil Sexton
  2006-08-17  5:37             ` Phil Sexton
  1 sibling, 0 replies; 59+ messages in thread
From: Phil Sexton @ 2006-08-17  5:31 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Phil Sexton schrieb:

>> I thought domainname was set in /etc/hosts.
> 
> 
> No, it's not. NIS doesn't use /etc/hosts for these things.
> 
>> Here is my /etc/conf.d/hostname:
>> # Set to the hostname of this machine
>> HOSTNAME="uilleann.fancypiper.info"
> 
> 
> That's not a hostname. A hostname has no dots (.).

What is NIS?

So I should just have uilleann, tinwhistle and bones for the hostnames 
of my boxen, correct?

What exactly does /etc/hosts do, then?

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:10           ` Alexander Skwar
  2006-08-17  5:31             ` Phil Sexton
@ 2006-08-17  5:37             ` Phil Sexton
  2006-08-17  6:01               ` Alexander Skwar
  1 sibling, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17  5:37 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Phil Sexton schrieb:
> 
>> Anthony E Caudel wrote:
>>
>>> Phil Sexton wrote:
>>>
>>>> Anthony E Caudel wrote:
>>>>
>>>>> Mike wrote:
>>>>>
>>>>>
>>>>>> Anthony E. Caudel wrote:
>>>>>>
>>>>>>
>>>>>>> As of baselayout-1.12.4, the domainname init script is no longer 
>>>>>>> used
>>>>>>> and the Gentoo Handbook no longer tells how to set the domainname.
>>>>>>> domainname now returns "(none)"
>>>>>>>
>>>>>>> /etc/conf.d/net.example talks about setting up dns_domain but if
>>>>>>> this is
>>>>>>> used, it overwrites /etc/resolv.conf.
>>>>>>>
>>>>>>> So how is the domainname now set?
>>>>>>>
>>>>>>> Tony
>>>>>>
>>>>>>
>>>>>> /etc/hosts ?

Here is another guess:
How about /etc/conf.d/domainname?

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:37             ` Phil Sexton
@ 2006-08-17  6:01               ` Alexander Skwar
  2006-08-17  6:28                 ` Phil Sexton
  0 siblings, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  6:01 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:

> Here is another guess:
> How about /etc/conf.d/domainname?

Yep, should be configured as well. But as you can see there, it doesn't
set the domainname of the system:

# DNSDOMAIN merely sets the domain entry in /etc/resolv.conf, see
# the resolv.conf(5) manpage for more info.

Alexander Skwar
-- 
May a hundred thousand midgets invade your home singing cheesy lounge-lizard
versions of songs from The Wizard of Oz.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:11   ` Alexander Skwar
@ 2006-08-17  6:02     ` Alexander Skwar
  2006-08-17  6:05     ` Phil Sexton
  1 sibling, 0 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  6:02 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar schrieb:
> Mark schrieb:

>> /etc/conf.d/domainname   .. for domain name.. as always ?
> 
> This file is obsolete.

Bullshit. It's not. But it's not for setting the domainname of a host.

Alexander Skwar
-- 
The only thing to do with good advice is pass it on.  It is never any
use to oneself.
		-- Oscar Wilde
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:07 ` Alexander Skwar
@ 2006-08-17  6:03   ` Alexander Skwar
  2006-08-17 13:06     ` Graham Murray
  2006-08-17  6:22   ` Anthony E. Caudel
  1 sibling, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  6:03 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar schrieb:

> The domainname is set with dns_domain or nis_domain.

Not "or", but "and". Depending on what domainname is to be set - NIS
or DNS.

Alexander Skwar
-- 
The only thing to do with good advice is pass it on.  It is never any
use to oneself.
		-- Oscar Wilde
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:11   ` Alexander Skwar
  2006-08-17  6:02     ` Alexander Skwar
@ 2006-08-17  6:05     ` Phil Sexton
  2006-08-17  8:27       ` Alexander Skwar
  1 sibling, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17  6:05 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Mark schrieb:
> 
>> On 16/08/06, Anthony E. Caudel <acaudel@gt.rr.com> wrote:
>>
>>> As of baselayout-1.12.4, the domainname init script is no longer used
>>> and the Gentoo Handbook no longer tells how to set the domainname.
>>> domainname now returns "(none)"
>>>
>>> /etc/conf.d/net.example talks about setting up dns_domain but if this is
>>> used, it overwrites /etc/resolv.conf.
>>
>>
>> Adding this to /etc/conf.d/net will stop dhcpcd from overwriting
>> /etc/resolv.conf
>> dhcpcd_eth0="-R"
>>
>> /etc/conf.d/domainname   .. for domain name.. as always ?
> 
> 
> This file is obsolete. So, it's not "as always".

So, where is it set then?  The /etc/conf.d/domainname is in my system. 
Why isn't it removed if it is obsolete?

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  5:07 ` Alexander Skwar
  2006-08-17  6:03   ` Alexander Skwar
@ 2006-08-17  6:22   ` Anthony E. Caudel
  1 sibling, 0 replies; 59+ messages in thread
From: Anthony E. Caudel @ 2006-08-17  6:22 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Anthony E. Caudel schrieb:
>> As of baselayout-1.12.4, the domainname init script is no longer used
>> and the Gentoo Handbook no longer tells how to set the domainname.
>> domainname now returns "(none)"
>>
>> /etc/conf.d/net.example talks about setting up dns_domain but if this is
>> used, it overwrites /etc/resolv.conf.
>>
>> So how is the domainname now set?
> 
> See net.example.
> 
> # Setting name/domain server causes /etc/resolv.conf to be overwritten
> # Note that if DHCP is used, and you want this to take precedence then
> # set dhcp_ESSID="nodns"
> #dns_servers_ESSID=( "192.168.0.1" "192.168.0.2" )
> #dns_domain_ESSID="some.domain"
> [...]
> #nis_domain_eth0="domain"
> 
> 
> The domainname is set with dns_domain or nis_domain.
> 
> Alexander Skwar

But setting my domainname this way overwrites my /etc/resolv.conf and I
lose my nameserver data.
(This is noted in /etc/conf.d/net.example)

Tony
-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  6:01               ` Alexander Skwar
@ 2006-08-17  6:28                 ` Phil Sexton
  2006-08-17  8:26                   ` Alexander Skwar
  0 siblings, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17  6:28 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Phil Sexton schrieb:
> 
>> Here is another guess:
>> How about /etc/conf.d/domainname?
> 
> 
> Yep, should be configured as well. But as you can see there, it doesn't
> set the domainname of the system:
> 
> # DNSDOMAIN merely sets the domain entry in /etc/resolv.conf, see
> # the resolv.conf(5) manpage for more info.
> 
> Alexander Skwar

I saw that there was a /bin/domainname and /bin/dnsdomainname that both 
   are linked to /bin/hostname. I just used the command:

# domainname uilleann

and now the command:

# domainname

returns

uilleann

My /etc/resolv.conf remained unchanged.

Perhaps this is current usage?

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 19:51 [gentoo-user] How to set domainname Anthony E. Caudel
                   ` (2 preceding siblings ...)
       [not found] ` <169ffc030608161354g5e8e9e28h3673983a72e4e5ae@mail.gmail.com>
@ 2006-08-17  7:31 ` Hans-Gunther Borrmann
  2006-08-17  8:32   ` Alexander Skwar
  2006-08-17  9:02 ` Roman Zilka
  2006-08-18 17:01 ` [gentoo-user] How to set domainname (SOLVED) Anthony E. Caudel
  5 siblings, 1 reply; 59+ messages in thread
From: Hans-Gunther Borrmann @ 2006-08-17  7:31 UTC (permalink / raw
  To: gentoo-user; +Cc: Anthony E. Caudel

On Wednesday 16 August 2006 21:51, Anthony E. Caudel wrote:
> As of baselayout-1.12.4, the domainname init script is no longer used
> and the Gentoo Handbook no longer tells how to set the domainname.
> domainname now returns "(none)"
>
> /etc/conf.d/net.example talks about setting up dns_domain but if this is
> used, it overwrites /etc/resolv.conf.
>
> So how is the domainname now set?
>
> Tony

in /etc/resolv.conf (man resolv.conf).

Gunther
-- 
________________________________________________________________
Hans-Gunther Borrmann <hans-gunther.borrmann@rz.uni-freiburg.de>
Rechenzentrum der Universitaet Freiburg
Hermann-Herder-Str. 10, D79104 FREIBURG
Tel.: +49 761/203-4652
Fax:  +49 761/203-4643
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  6:28                 ` Phil Sexton
@ 2006-08-17  8:26                   ` Alexander Skwar
  2006-08-17 12:43                     ` Phil Sexton
  0 siblings, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  8:26 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Alexander Skwar wrote:
>> Phil Sexton schrieb:
>> 
>>> Here is another guess:
>>> How about /etc/conf.d/domainname?
>> 
>> 
>> Yep, should be configured as well. But as you can see there, it doesn't
>> set the domainname of the system:
>> 
>> # DNSDOMAIN merely sets the domain entry in /etc/resolv.conf, see
>> # the resolv.conf(5) manpage for more info.
>> 
>> Alexander Skwar
> 
> I saw that there was a /bin/domainname and /bin/dnsdomainname that both 
>    are linked to /bin/hostname.

Yep.

> I just used the command:
> 
> # domainname uilleann

That's not a domainname, as there are no dots (.). Granted, a domain doesn't
have to have dots, but it's very unusual to have a TLD.

Also, I understood you so, that your hostname is uilleann.

> and now the command:
> 
> # domainname
> 
> returns
> 
> uilleann

Yep.

> My /etc/resolv.conf remained unchanged.

Of course. Why should resolv.conf be changed?

> Perhaps this is current usage?

No.

Alexander Skwar
-- 
I love children.  Especially when they cry -- for then someone takes them away.
		-- Nancy Mitford
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  6:05     ` Phil Sexton
@ 2006-08-17  8:27       ` Alexander Skwar
  0 siblings, 0 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  8:27 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Alexander Skwar wrote:
>> Mark schrieb:
>> 
>>> On 16/08/06, Anthony E. Caudel <acaudel@gt.rr.com> wrote:
>>>
>>>> As of baselayout-1.12.4, the domainname init script is no longer used
>>>> and the Gentoo Handbook no longer tells how to set the domainname.
>>>> domainname now returns "(none)"
>>>>
>>>> /etc/conf.d/net.example talks about setting up dns_domain but if this is
>>>> used, it overwrites /etc/resolv.conf.
>>>
>>>
>>> Adding this to /etc/conf.d/net will stop dhcpcd from overwriting
>>> /etc/resolv.conf
>>> dhcpcd_eth0="-R"
>>>
>>> /etc/conf.d/domainname   .. for domain name.. as always ?
>> 
>> 
>> This file is obsolete. So, it's not "as always".
> 
> So, where is it set then?

In /etc/conf.d/net, as I already wrote.

>  The /etc/conf.d/domainname is in my system. 
> Why isn't it removed if it is obsolete?

First of, it wouldn't be removed, as the config protection
protects this file. But more importantly, it isn't removed,
as it is not obsolete.

Alexander Skwar
-- 
"Money is the root of all money."
		-- the moving finger
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  7:31 ` Hans-Gunther Borrmann
@ 2006-08-17  8:32   ` Alexander Skwar
  2006-08-17  9:02     ` Hans-Gunther Borrmann
  0 siblings, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  8:32 UTC (permalink / raw
  To: gentoo-user

Hans-Gunther Borrmann schrieb:
> On Wednesday 16 August 2006 21:51, Anthony E. Caudel wrote:
>> As of baselayout-1.12.4, the domainname init script is no longer used
>> and the Gentoo Handbook no longer tells how to set the domainname.
>> domainname now returns "(none)"
>>
>> /etc/conf.d/net.example talks about setting up dns_domain but if this is
>> used, it overwrites /etc/resolv.conf.
>>
>> So how is the domainname now set?
>>
>> Tony
> 
> in /etc/resolv.conf 

Nope. resolv.conf doesn't have any influence on the hostname or
domainname. It controls, how names/ips are resolved.

If it would be as you say, what would be my domainname?

alexander@knospe:~/tmp/sources/samba/samba-3.0.22/source/utils$ cat /etc/resolv.conf
search bei.digitalprojects.com
nameserver 192.168.1.1

 > (man resolv.conf).

NAME
        resolv.conf - resolver configuration file


The "domain" setting doesn't do what you say.

[...]
        domain Local domain name.
               Most  queries  for  names  within this domain can use short names relative to the
               local domain.  If no domain entry is present, the domain is determined  from  the
[...]

See? It's for "queries for names".

Alexander Skwar
-- 
Remember that as a teenager you are in the last stage of your life when
you will be happy to hear that the phone is for you.
		-- Fran Lebowitz, "Social Studies"
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  8:32   ` Alexander Skwar
@ 2006-08-17  9:02     ` Hans-Gunther Borrmann
  2006-08-17  9:19       ` Alexander Skwar
  2006-08-17 12:48       ` Enrico Weigelt
  0 siblings, 2 replies; 59+ messages in thread
From: Hans-Gunther Borrmann @ 2006-08-17  9:02 UTC (permalink / raw
  To: gentoo-user; +Cc: Alexander Skwar

On Thursday 17 August 2006 10:32, Alexander Skwar wrote:

> Nope. resolv.conf doesn't have any influence on the hostname or
> domainname. It controls, how names/ips are resolved.
>
> If it would be as you say, what would be my domainname?
>
> alexander@knospe:~/tmp/sources/samba/samba-3.0.22/source/utils$ cat
> /etc/resolv.conf search bei.digitalprojects.com
> nameserver 192.168.1.1
>
>  > (man resolv.conf).
>
> NAME
>         resolv.conf - resolver configuration file
>
>
> The "domain" setting doesn't do what you say.
>
> [...]
>         domain Local domain name.
>                Most  queries  for  names  within this domain can use short
> names relative to the local domain.  If no domain entry is present, the
> domain is determined  from  the [...]
>
> See? It's for "queries for names".

and from where does my machine get its domain name? It is only contained in 
resolv.conf.

urmel ~ # hostname
urmel
urmel ~ # dnsdomainname
ruf.uni-freiburg.de

Gunther
-- 
________________________________________________________________
Hans-Gunther Borrmann <hans-gunther.borrmann@rz.uni-freiburg.de>
Rechenzentrum der Universitaet Freiburg
Hermann-Herder-Str. 10, D79104 FREIBURG
Tel.: +49 761/203-4652
Fax:  +49 761/203-4643
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-16 19:51 [gentoo-user] How to set domainname Anthony E. Caudel
                   ` (3 preceding siblings ...)
  2006-08-17  7:31 ` Hans-Gunther Borrmann
@ 2006-08-17  9:02 ` Roman Zilka
  2006-08-17  9:17   ` Roman Zilka
  2006-08-17 10:19   ` Hans-Gunther Borrmann
  2006-08-18 17:01 ` [gentoo-user] How to set domainname (SOLVED) Anthony E. Caudel
  5 siblings, 2 replies; 59+ messages in thread
From: Roman Zilka @ 2006-08-17  9:02 UTC (permalink / raw
  To: gentoo-user

> So how is the domainname now set?

This was discussed here before; I think the solution was
to put something somewhere in a specific order. I have this working
properly and these're my files:

# cat /etc/conf.d/domainname
OVERRIDE=1
DNSDOMAIN="gvid.cz"
NISDOMAIN=""
# cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 10.0.0.3
search gvid.cz
domain gvid.cz
# cat /etc/hosts
127.0.0.1       univac.gvid.cz univac localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# cat /etc/conf.d/net
config_eth0=( "10.0.0.38 netmask 255.255.255.0" )
routes_eth0=( "default gw 10.0.0.2" )
dns_servers="127.0.0.1 10.0.0.3"
dns_domain="gvid.cz"
dns_search="gvid.cz"

Now try preserving the same order of lines and the same order of keywords on
each line. I think the one itching spot was to put the various names
on the first line of /etc/hosts in the prescribed order.

HTH,
-Roman
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  9:02 ` Roman Zilka
@ 2006-08-17  9:17   ` Roman Zilka
  2006-08-17 10:19   ` Hans-Gunther Borrmann
  1 sibling, 0 replies; 59+ messages in thread
From: Roman Zilka @ 2006-08-17  9:17 UTC (permalink / raw
  To: gentoo-user

I beg your pardon, this was a different issue - "(none)" appearing
in the domainname's place somewhere else (possibly in the auto-generated
/etc/issue).

My apologies for spamming
-Roman
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  9:02     ` Hans-Gunther Borrmann
@ 2006-08-17  9:19       ` Alexander Skwar
  2006-08-17 12:48       ` Enrico Weigelt
  1 sibling, 0 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17  9:19 UTC (permalink / raw
  To: gentoo-user

Hans-Gunther Borrmann schrieb:
> On Thursday 17 August 2006 10:32, Alexander Skwar wrote:
> 
>> Nope. resolv.conf doesn't have any influence on the hostname or
>> domainname. It controls, how names/ips are resolved.
>>
>> If it would be as you say, what would be my domainname?
>>
>> alexander@knospe:~/tmp/sources/samba/samba-3.0.22/source/utils$ cat
>> /etc/resolv.conf search bei.digitalprojects.com
>> nameserver 192.168.1.1
>>
>>  > (man resolv.conf).
>>
>> NAME
>>         resolv.conf - resolver configuration file
>>
>>
>> The "domain" setting doesn't do what you say.
>>
>> [...]
>>         domain Local domain name.
>>                Most  queries  for  names  within this domain can use short
>> names relative to the local domain.  If no domain entry is present, the
>> domain is determined  from  the [...]
>>
>> See? It's for "queries for names".
> 
> and from where does my machine get its domain name? It is only contained in 
> resolv.conf.

Good question. But as I've shown, it's not necessary to set it
in /etc/resolv.conf.

Alexander Skwar
-- 
Go climb a gravity well!
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  9:02 ` Roman Zilka
  2006-08-17  9:17   ` Roman Zilka
@ 2006-08-17 10:19   ` Hans-Gunther Borrmann
  2006-08-17 10:50     ` Roman Zilka
  1 sibling, 1 reply; 59+ messages in thread
From: Hans-Gunther Borrmann @ 2006-08-17 10:19 UTC (permalink / raw
  To: gentoo-user; +Cc: Roman Zilka

On Thursday 17 August 2006 11:02, Roman Zilka wrote:
> # cat /etc/resolv.conf
> nameserver 127.0.0.1
> nameserver 10.0.0.3
> search gvid.cz
> domain gvid.cz

domain and search are mutually exclusive!

Gunther
-- 
________________________________________________________________
Hans-Gunther Borrmann <hans-gunther.borrmann@rz.uni-freiburg.de>
Rechenzentrum der Universitaet Freiburg
Hermann-Herder-Str. 10, D79104 FREIBURG
Tel.: +49 761/203-4652
Fax:  +49 761/203-4643
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 10:19   ` Hans-Gunther Borrmann
@ 2006-08-17 10:50     ` Roman Zilka
  2006-08-17 12:45       ` Enrico Weigelt
  0 siblings, 1 reply; 59+ messages in thread
From: Roman Zilka @ 2006-08-17 10:50 UTC (permalink / raw
  To: gentoo-user

> > # cat /etc/resolv.conf
> > nameserver 127.0.0.1
> > nameserver 10.0.0.3
> > search gvid.cz
> > domain gvid.cz
> 
> domain and search are mutually exclusive!

Hm, I see, thanks for the hint. Somehow somewhere I got a wrong understanding
of what "search" actually means.

Regards
-Roman
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  8:26                   ` Alexander Skwar
@ 2006-08-17 12:43                     ` Phil Sexton
  2006-08-17 13:00                       ` Phil Sexton
  2006-08-17 13:13                       ` Alexander Skwar
  0 siblings, 2 replies; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 12:43 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Phil Sexton schrieb:

>> I just used the command:
>>
>> # domainname uilleann
> 
> 
> That's not a domainname, as there are no dots (.). Granted, a domain 
> doesn't
> have to have dots, but it's very unusual to have a TLD.

I am thouroughly confused now.  I previously had 
uilleann.fancypiper.info and that wasnt' a domainname because it had 
dots.  Now I have been told the opposite.  Both were written by you, so 
you have me in a fog of confusion.  Should I believe you since you have 
told me that nothing is correct for a domainname?

<From an earlier post>

 > Here is my /etc/conf.d/hostname:
 > # Set to the hostname of this machine
 > HOSTNAME="uilleann.fancypiper.info"


That's not a hostname. A hostname has no dots (.).



Alexander Skwar

<end earlier e-mail>

> Also, I understood you so, that your hostname is uilleann.
> 
>> and now the command:
>>
>> # domainname
>>
>> returns
>>
>> uilleann
> 
> 
> Yep.
> 
>> My /etc/resolv.conf remained unchanged.
> 
> 
> Of course. Why should resolv.conf be changed?

I have no idea, but there is the /etc/conf.d/net.example which talks 
about setting up dns_domain but if this is used, it overwrites 
/etc/resolv.conf.  Someone was wondering how to set the domain name 
without changing resolv.conf, so I pointed that out.

>> Perhaps this is current usage?
> 
> 
> No.

Strange.  Why is the script there?  Why does it set the domain name.  It 
doesn't break my system, but I don't have my other boxen built and the 
OSs installed yet.  I can't test networking until I get those made.

> Alexander Skwar


-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 10:50     ` Roman Zilka
@ 2006-08-17 12:45       ` Enrico Weigelt
  0 siblings, 0 replies; 59+ messages in thread
From: Enrico Weigelt @ 2006-08-17 12:45 UTC (permalink / raw
  To: gentoo-user

* Roman Zilka <rzilka@gvid.cz> wrote:
> > > # cat /etc/resolv.conf
> > > nameserver 127.0.0.1
> > > nameserver 10.0.0.3
> > > search gvid.cz
> > > domain gvid.cz
> > 
> > domain and search are mutually exclusive!
> 
> Hm, I see, thanks for the hint. Somehow somewhere I got a wrong understanding
> of what "search" actually means.

* "domain" is the namespace where all your non-cacnonical 
  hostnames sit in, so necessary for constructing the canonical
  names (FQDNs).
  
  For example, if your box's name is "furunkel" and your domainname
  is "my-back.net", then your FQDN becomes "furunkel.my-back.net".
  
* "search" is the list of the namespaces where non-canonical names 
  are searched in on lookup.
  
  For example, you've got "foo.org" and "blubb.de" in your search list
  and you're doing a lookup for "mybox", it will try the FQDNs
  "mybox.foo.org" and "mybox.blubb.de".
  
I didn't ever try what happens when domain also added to search
list (maybe nothing, since its searched anyway), but it does not
make any sense.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  9:02     ` Hans-Gunther Borrmann
  2006-08-17  9:19       ` Alexander Skwar
@ 2006-08-17 12:48       ` Enrico Weigelt
  1 sibling, 0 replies; 59+ messages in thread
From: Enrico Weigelt @ 2006-08-17 12:48 UTC (permalink / raw
  To: gentoo-user

* Hans-Gunther Borrmann <hans-gunther.borrmann@rz.uni-freiburg.de> wrote:

<snip>

> and from where does my machine get its domain name? 

The kernel knows it. Of course, it has to be set on each boot.
I actually have no idea, how gentoo sets it, but most obviously
it will be done by an "dnsdomainname" and "hostname" call.
Try a look at the boot scripts.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 12:43                     ` Phil Sexton
@ 2006-08-17 13:00                       ` Phil Sexton
  2006-08-17 13:14                         ` Neil Bothwick
  2006-08-17 13:14                         ` Alexander Skwar
  2006-08-17 13:13                       ` Alexander Skwar
  1 sibling, 2 replies; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 13:00 UTC (permalink / raw
  To: gentoo-user

Pardon my thick skull. Alexander Skwar, I appoligise for my last post.

Darn this morphine I have to take for my pain.

I am confusing hostname and domain name.

I still don't understand why the script isn't supposed to be used to set 
hostnane/domainname though.

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17  6:03   ` Alexander Skwar
@ 2006-08-17 13:06     ` Graham Murray
  0 siblings, 0 replies; 59+ messages in thread
From: Graham Murray @ 2006-08-17 13:06 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar <listen@alexander.skwar.name> writes:

> Not "or", but "and". Depending on what domainname is to be set - NIS
> or DNS.
>

Which is the one whose use will cause its value to passed to setdomainname(2)?
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 12:43                     ` Phil Sexton
  2006-08-17 13:00                       ` Phil Sexton
@ 2006-08-17 13:13                       ` Alexander Skwar
  2006-08-17 13:37                         ` Phil Sexton
  1 sibling, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17 13:13 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Alexander Skwar wrote:
>> Phil Sexton schrieb:
> 
>>> I just used the command:
>>>
>>> # domainname uilleann
>> 
>> 
>> That's not a domainname, as there are no dots (.). Granted, a domain 
>> doesn't
>> have to have dots, but it's very unusual to have a TLD.
> 
> I am thouroughly confused now.  I previously had 
> uilleann.fancypiper.info and that wasnt' a domainname because it had 
> dots.

That's not what I said. I said, that's not a hostname, because it has
dots.

>  Now I have been told the opposite.

No, you were not.


>  Both were written by you,

Yep.

> so 
> you have me in a fog of confusion.  Should I believe you since you have 
> told me that nothing is correct for a domainname?

Yes, you should, as I didn't do, what you say.

> <From an earlier post>
> 
>  > Here is my /etc/conf.d/hostname:
>  > # Set to the hostname of this machine
>  > HOSTNAME="uilleann.fancypiper.info"
> 
> 
> That's not a hostname. A hostname has no dots (.).
                ^^^^^^^^^

> I have no idea, but there is the /etc/conf.d/net.example which talks 
> about setting up dns_domain but if this is used, it overwrites 
> /etc/resolv.conf.

Yep. And all that's set in resolv.conf can be set in /etc/conf.d/net,
so I don't see the problem in having resolv.conf being overwritten.

>>> Perhaps this is current usage?
>> 
>> 
>> No.
> 
> Strange.  Why is the script there?

What script?

>  Why does it set the domain name.

Because the domainname is set with the domainname command. Gentoo
"automatically" calls domainname, when properly configured.

>  It 
> doesn't break my system, but I don't have my other boxen built and the 
> OSs installed yet.  I can't test networking until I get those made.
> 
>> Alexander Skwar
> 
> 


Alexander Skwar
-- 
If some day we are defeated, well, war has its fortunes, good and bad.
		-- Commander Kor, "Errand of Mercy", stardate 3201.7
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 13:00                       ` Phil Sexton
@ 2006-08-17 13:14                         ` Neil Bothwick
  2006-08-17 13:48                           ` Phil Sexton
  2006-08-17 13:14                         ` Alexander Skwar
  1 sibling, 1 reply; 59+ messages in thread
From: Neil Bothwick @ 2006-08-17 13:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

On Thu, 17 Aug 2006 09:00:41 -0400, Phil Sexton wrote:

> I still don't understand why the script isn't supposed to be used to
> set hostnane/domainname though.

Because your domain name may change while your hostname stays the same,
or vice versa. Think of a laptop connected at various locations. Locking
the two together in one config file works against this.


-- 
Neil Bothwick

Tact is the intelligence of the heart.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] How to set domainname
  2006-08-17 13:00                       ` Phil Sexton
  2006-08-17 13:14                         ` Neil Bothwick
@ 2006-08-17 13:14                         ` Alexander Skwar
       [not found]                           ` <44E47321.2060106@infoave.net>
  1 sibling, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17 13:14 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:

> I still don't understand why the script isn't supposed to be used to set 
> hostnane/domainname though.

What script? /bin/domainname is not a script, but a binary. And it's
this binary, which sets the domainname. But as most users don't want
to run domainname manually all the time, there are ways to make
Gentoo call domainname. One of this ways is setting up /etc/conf.d/net.

Alexander Skwar
-- 
"You show me an American who can keep his mouth shut and I'll eat him."
		-- Newspaperman from Frank Capra's _Meet_John_Doe_
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 13:13                       ` Alexander Skwar
@ 2006-08-17 13:37                         ` Phil Sexton
  0 siblings, 0 replies; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 13:37 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:

>> Strange.  Why is the script there?
> 
> 
> What script?

The script I mentioned before:
/bin/hostname and the symlinks that point to it,  /bin/domainname and 
/bin/dnsdomainname

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 13:14                         ` Neil Bothwick
@ 2006-08-17 13:48                           ` Phil Sexton
  0 siblings, 0 replies; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 13:48 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:

> Because your domain name may change while your hostname stays the same,
> or vice versa. Think of a laptop connected at various locations. Locking
> the two together in one config file works against this.

Aha!

I don't have anything mobile, just my home box and the ones under 
construction.

I use a portable usb drive for my mobile data needs.

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
       [not found]                           ` <44E47321.2060106@infoave.net>
@ 2006-08-17 14:19                             ` Alexander Skwar
  2006-08-17 14:31                               ` Phil Sexton
  0 siblings, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17 14:19 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Alexander Skwar wrote:
> 
>> What script? /bin/domainname is not a script, but a binary. And it's
>> this binary, which sets the domainname. But as most users don't want
>> to run domainname manually all the time, there are ways to make
>> Gentoo call domainname. One of this ways is setting up /etc/conf.d/net.
>> 
>> Alexander Skwar
> 
> OK, it's a binary rather than a script. 'Scuse my sloppyness.

No problem.

> Apparently you mean that the hostname/domainname, etc. done with the 
> binary is gone on reboot (which I do very seldom, so I hadn't noticed)

Yes, of course. In general, no unix command modifies configuration files.
That's, in general, done with an editor.

> I didn't think you had to run it manually unless you want to.  Can't you 
> call if from
> 
> /etc/conf.d/local.start

Sure, but why do that? Why not use the mechanisms, that Gentoo
forsees for this?

> I thought that was the purpose of that file, to run stuff you want to on 
> bootup.

That's not how I see the file. For me, the file is there to do stuff,
for which there's no "proper" way.

Alexander Skwar
-- 
... the MYSTERIANS are in here with my CORDUROY SOAP DISH!!
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 14:19                             ` Alexander Skwar
@ 2006-08-17 14:31                               ` Phil Sexton
  2006-08-17 14:47                                 ` Alexander Skwar
  0 siblings, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 14:31 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Phil Sexton schrieb:

>> I didn't think you had to run it manually unless you want to.  Can't 
>> you call if from
>>
>> /etc/conf.d/local.start
> 
> 
> Sure, but why do that? Why not use the mechanisms, that Gentoo
> forsees for this?
> 
>> I thought that was the purpose of that file, to run stuff you want to 
>> on bootup.
> 
> 
> That's not how I see the file. For me, the file is there to do stuff,
> for which there's no "proper" way.

Gentoo is the only distribution I have seen use that particular file, so 
I consider it one of the "proper" ways to do things I can't figure out 
otherwise.

There is usually more than one way to "skin a cat" in Linux.

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 14:31                               ` Phil Sexton
@ 2006-08-17 14:47                                 ` Alexander Skwar
  2006-08-17 14:58                                   ` Phil Sexton
                                                     ` (2 more replies)
  0 siblings, 3 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17 14:47 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Alexander Skwar wrote:
>> Phil Sexton schrieb:
> 
>>> I didn't think you had to run it manually unless you want to.  Can't 
>>> you call if from
>>>
>>> /etc/conf.d/local.start
>> 
>> 
>> Sure, but why do that? Why not use the mechanisms, that Gentoo
>> forsees for this?

Interestingly, you did not answer this question. Why's that so?

>>> I thought that was the purpose of that file, to run stuff you want to 
>>> on bootup.
>> 
>> 
>> That's not how I see the file. For me, the file is there to do stuff,
>> for which there's no "proper" way.
> 
> Gentoo is the only distribution I have seen use that particular file,

What file? /etc/conf.d/net?

> so
> I consider it one of the "proper" ways to do things I can't figure out 
> otherwise.

You should use /etc/conf.d/net to set the domainname.

> There is usually more than one way to "skin a cat" in Linux.

True. Some are "with the spirit", some are not so much with the spirit
of the distribution.

Alexander Skwar
-- 
Patageometry, n.:
	The study of those mathematical properties that are invariant
	under brain transplants.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 14:47                                 ` Alexander Skwar
@ 2006-08-17 14:58                                   ` Phil Sexton
       [not found]                                     ` <44E4C0DC.6070103@mid.email-server.info>
  2006-08-17 15:01                                   ` [gentoo-user] " Graham Murray
  2006-08-17 15:01                                   ` [gentoo-user] " Phil Sexton
  2 siblings, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 14:58 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> Phil Sexton schrieb:
<snip>
>>>> /etc/conf.d/local.start
<snip>
>> Gentoo is the only distribution I have seen use that particular file,
> 
> 
> What file? /etc/conf.d/net?

No, the file I was speaking of, /etc/conf.d/local.start

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 14:47                                 ` Alexander Skwar
  2006-08-17 14:58                                   ` Phil Sexton
@ 2006-08-17 15:01                                   ` Graham Murray
  2006-08-17 15:21                                     ` Neil Bothwick
  2006-08-17 22:52                                     ` Ryan Tandy
  2006-08-17 15:01                                   ` [gentoo-user] " Phil Sexton
  2 siblings, 2 replies; 59+ messages in thread
From: Graham Murray @ 2006-08-17 15:01 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar <listen@alexander.skwar.name> writes:

> You should use /etc/conf.d/net to set the domainname.

So why does /etc/conf.d.net.example state

# For configuring system specifics such as domain, dns, ntp and nis servers
# It's rare that you would need todo this, but you can anyway.
# This is most benefit to wireless users who don't use DHCP so they can change
# their configs based on ESSID. See wireless.example for more details

This implies that using /etc/conf.d/net to set domain name, dns and
ntp parameters should be the exception rather than the norm. That
'fixed' (not portable) systems with wired connections would not use
/etc/conf.d/net to set these parameters.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 14:47                                 ` Alexander Skwar
  2006-08-17 14:58                                   ` Phil Sexton
  2006-08-17 15:01                                   ` [gentoo-user] " Graham Murray
@ 2006-08-17 15:01                                   ` Phil Sexton
  2006-08-17 19:19                                     ` Alexander Skwar
  2 siblings, 1 reply; 59+ messages in thread
From: Phil Sexton @ 2006-08-17 15:01 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:

>>> Sure, but why do that? Why not use the mechanisms, that Gentoo
>>> forsees for this?
> 
> 
> Interestingly, you did not answer this question. Why's that so?

Because it was your statement, not mine.  Anyhow, I thought you had 
already answered that. Didn't you recommend editing /etc/conf.d/net?

-- 
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 15:01                                   ` [gentoo-user] " Graham Murray
@ 2006-08-17 15:21                                     ` Neil Bothwick
  2006-08-17 22:52                                     ` Ryan Tandy
  1 sibling, 0 replies; 59+ messages in thread
From: Neil Bothwick @ 2006-08-17 15:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

On Thu, 17 Aug 2006 16:01:33 +0100, Graham Murray wrote:

> So why does /etc/conf.d.net.example state
> 
> # For configuring system specifics such as domain, dns, ntp and nis
> servers # It's rare that you would need todo this, but you can anyway.
> # This is most benefit to wireless users who don't use DHCP so they can
> change # their configs based on ESSID. See wireless.example for more
> details
> 
> This implies that using /etc/conf.d/net to set domain name, dns and
> ntp parameters should be the exception rather than the norm. That
> 'fixed' (not portable) systems with wired connections would not use
> /etc/conf.d/net to set these parameters.

I think you'll find that only refers to that section of conf.d/net, the
part where system-wide global settings are set, as opposed to further
down the page where per-interface settings are configured. It could do
with a re-wording though. 


-- 
Neil Bothwick

Windows: just another pane in the glass

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] How to set domainname
  2006-08-17 15:01                                   ` [gentoo-user] " Phil Sexton
@ 2006-08-17 19:19                                     ` Alexander Skwar
  0 siblings, 0 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-17 19:19 UTC (permalink / raw
  To: gentoo-user

Phil Sexton schrieb:
> Alexander Skwar wrote:
> 
>>>> Sure, but why do that? Why not use the mechanisms, that Gentoo
>>>> forsees for this?
>> 
>> 
>> Interestingly, you did not answer this question. Why's that so?
> 
> Because it was your statement, not mine.

So? It was a question and interestingly, you didn't answer this
question but other questions which I posted.

>  Anyhow, I thought you had 
> already answered that.

Why should I answer my own questions? Why should I ask that, and
then answer it myself?

> Didn't you recommend editing /etc/conf.d/net?

Sure. I still do.

Alexander Skwar
-- 
How many retured bricklayers from FLORIDA are out purchasing PENCIL
SHARPENERS right NOW??
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 15:01                                   ` [gentoo-user] " Graham Murray
  2006-08-17 15:21                                     ` Neil Bothwick
@ 2006-08-17 22:52                                     ` Ryan Tandy
  2006-08-18 10:55                                       ` Graham Murray
  1 sibling, 1 reply; 59+ messages in thread
From: Ryan Tandy @ 2006-08-17 22:52 UTC (permalink / raw
  To: gentoo-user

Graham Murray wrote:
> Alexander Skwar <listen@alexander.skwar.name> writes:
> 
>> You should use /etc/conf.d/net to set the domainname.
> 
> So why does /etc/conf.d.net.example state
> 
> # For configuring system specifics such as domain, dns, ntp and nis servers
> # It's rare that you would need todo this, but you can anyway.
> # This is most benefit to wireless users who don't use DHCP so they can change
> # their configs based on ESSID. See wireless.example for more details
> 
> This implies that using /etc/conf.d/net to set domain name, dns and
> ntp parameters should be the exception rather than the norm. That
> 'fixed' (not portable) systems with wired connections would not use
> /etc/conf.d/net to set these parameters.

Sorry, but I disagree with this interpretation.  The way I read it, it 
says that in the rare case that one should wish to change things such as 
domain, DNS, etc, one should use /etc/conf.d/net, but that a wireless 
user is more likely to need/want such configurability than a typical 
desktop user is.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-17 22:52                                     ` Ryan Tandy
@ 2006-08-18 10:55                                       ` Graham Murray
  2006-08-19  3:59                                         ` Ryan Tandy
  0 siblings, 1 reply; 59+ messages in thread
From: Graham Murray @ 2006-08-18 10:55 UTC (permalink / raw
  To: gentoo-user

Ryan Tandy <tarpman@gmail.com> writes:

> Sorry, but I disagree with this interpretation.  The way I read it, it
> says that in the rare case that one should wish to change things such
> as domain, DNS, etc, one should use /etc/conf.d/net, but that a
> wireless user is more likely to need/want such configurability than a
> typical desktop user is.

But this thread is about setting the domain name initially. This is
something which desktop users want to do and the suggestion was that
/etc/conf.d/net is the correct place to set (as well as change on a
per-interface basis) this.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
       [not found]                                     ` <44E4C0DC.6070103@mid.email-server.info>
@ 2006-08-18 16:45                                       ` Jarry
  2006-08-18 17:13                                         ` [gentoo-user] " Andrey
  2006-08-18 18:36                                         ` Alexander Skwar
  0 siblings, 2 replies; 59+ messages in thread
From: Jarry @ 2006-08-18 16:45 UTC (permalink / raw
  To: gentoo-user

Hi,
I've been following this thread for the whole day, but despite
of reading many mails (unbelievable, how much mail-traffic can
such a simple question generate!), I'm still missing simple
yet exact answer (but maybe I have lost some emails).
So could someone please summarise it?

Supposing someone is using the last stable baselayout
(right now it is 1.12.4-r6 for x86 & amd64):

How and where to set up hostname?

How and where to set up domainname?

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



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

* Re: [gentoo-user] How to set domainname (SOLVED)
  2006-08-16 19:51 [gentoo-user] How to set domainname Anthony E. Caudel
                   ` (4 preceding siblings ...)
  2006-08-17  9:02 ` Roman Zilka
@ 2006-08-18 17:01 ` Anthony E. Caudel
  5 siblings, 0 replies; 59+ messages in thread
From: Anthony E. Caudel @ 2006-08-18 17:01 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel wrote:
> As of baselayout-1.12.4, the domainname init script is no longer used
> and the Gentoo Handbook no longer tells how to set the domainname.
> domainname now returns "(none)"
> 
> /etc/conf.d/net.example talks about setting up dns_domain but if this is
> used, it overwrites /etc/resolv.conf.
> 
> So how is the domainname now set?
> 
> Tony

Ok, I finally got it through my thick head. Ryan Tandy had pointed out
that "domainname" is not the proper way to display the FQDN; - it
displays the NIS/YP domainname which I don't have.  But his comment went
over my head until now.  "dnsdomainname" is the command I should have
been using and it does report the correct domain.

Also, I confirmed that my domainname (dnsdomainname) is being set in
/etc/hosts, as some others have pointed out.

So, thanks to everyone for their patience with me, especially Alexander
Skwar.

Tony
-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user] Re: How to set domainname
  2006-08-18 16:45                                       ` Jarry
@ 2006-08-18 17:13                                         ` Andrey
  2006-08-18 18:36                                         ` Alexander Skwar
  1 sibling, 0 replies; 59+ messages in thread
From: Andrey @ 2006-08-18 17:13 UTC (permalink / raw
  To: gentoo-user

2006/8/18, Jarry <jarry@gmx.net>:
> Hi,
> I've been following this thread for the whole day, but despite
> of reading many mails (unbelievable, how much mail-traffic can
> such a simple question generate!), I'm still missing simple
> yet exact answer (but maybe I have lost some emails).
> So could someone please summarise it?
>
> Supposing someone is using the last stable baselayout
> (right now it is 1.12.4-r6 for x86 & amd64):
>
> How and where to set up hostname?
>
> How and where to set up domainname?

How about /etc/hosts ?
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: How to set domainname
  2006-08-18 16:45                                       ` Jarry
  2006-08-18 17:13                                         ` [gentoo-user] " Andrey
@ 2006-08-18 18:36                                         ` Alexander Skwar
  1 sibling, 0 replies; 59+ messages in thread
From: Alexander Skwar @ 2006-08-18 18:36 UTC (permalink / raw
  To: gentoo-user

· Jarry <jarry@gmx.net>:

> How and where to set up hostname?

/etc/conf.d/hostname

> How and where to set up domainname?

/etc/conf.d/net

Alexander Skwar
-- 
Wer keine Kraft zum Träumen hat, hat keinen Mut zum Kämpfen.


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] How to set domainname
  2006-08-18 10:55                                       ` Graham Murray
@ 2006-08-19  3:59                                         ` Ryan Tandy
  2006-08-19  5:26                                           ` [gentoo-user] " Alexander Skwar
  0 siblings, 1 reply; 59+ messages in thread
From: Ryan Tandy @ 2006-08-19  3:59 UTC (permalink / raw
  To: gentoo-user

Graham Murray wrote:
> 
> But this thread is about setting the domain name initially. This is
> something which desktop users want to do and the suggestion was that
> /etc/conf.d/net is the correct place to set (as well as change on a
> per-interface basis) this.

Context is everything. ;)  The post I was replying to was attempting to 
suggest otherwise.

In any case, how do I go about setting my domain name in /etc/conf.d/net 
if I still want to get my DNS server from DHCP (and I can't be sure it 
won't change without warning)?
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: How to set domainname
  2006-08-19  3:59                                         ` Ryan Tandy
@ 2006-08-19  5:26                                           ` Alexander Skwar
  2006-08-19 22:46                                             ` Ryan Tandy
  0 siblings, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-19  5:26 UTC (permalink / raw
  To: gentoo-user

· Ryan Tandy <tarpman@gmail.com>:

> In any case, how do I go about setting my domain name in /etc/conf.d/net 
> if I still want to get my DNS server from DHCP (and I can't be sure it 
> won't change without warning)?

Hm? Why should there be a problem? Just don't add a "dns_servers"
line to /etc/conf.d/net

Alexander Skwar
-- 
Wer die Ursache nicht kennt, nennt die Wirkung Zufall.
                -- Werner Mitsch


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: How to set domainname
  2006-08-19  5:26                                           ` [gentoo-user] " Alexander Skwar
@ 2006-08-19 22:46                                             ` Ryan Tandy
  2006-08-19 23:00                                               ` [gentoo-user] " Alexander Skwar
  0 siblings, 1 reply; 59+ messages in thread
From: Ryan Tandy @ 2006-08-19 22:46 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:
> · Ryan Tandy <tarpman@gmail.com>:
> 
>> In any case, how do I go about setting my domain name in /etc/conf.d/net 
>> if I still want to get my DNS server from DHCP (and I can't be sure it 
>> won't change without warning)?
> 
> Hm? Why should there be a problem? Just don't add a "dns_servers"
> line to /etc/conf.d/net
> 
> Alexander Skwar

/etc/conf.d/net.example:637
> # To use dns settings such as these, dns_servers_eth0 must be set!

It's working fine right now with the domain name being set in /etc/hosts 
- I'm just wondering if it's *possible* to do it the "proper" way 
without setting dns_servers_eth0.
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: Re: How to set domainname
  2006-08-19 22:46                                             ` Ryan Tandy
@ 2006-08-19 23:00                                               ` Alexander Skwar
  2006-08-20  1:09                                                 ` [gentoo-user] " Ryan Tandy
  0 siblings, 1 reply; 59+ messages in thread
From: Alexander Skwar @ 2006-08-19 23:00 UTC (permalink / raw
  To: gentoo-user

· Ryan Tandy <tarpman@gmail.com>:

> /etc/conf.d/net.example:637
>> # To use dns settings such as these, dns_servers_eth0 must be set!
> 
> It's working fine right now with the domain name being set in /etc/hosts 
> - I'm just wondering if it's *possible* to do it the "proper" way 
> without setting dns_servers_eth0.

You know, you can play your sniping game yourself. It's boring.
IOW: Read line 638 and 639.

Alexander Skwar
-- 
Frauen sind genau wie Männer, nur anders.


-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: How to set domainname
  2006-08-19 23:00                                               ` [gentoo-user] " Alexander Skwar
@ 2006-08-20  1:09                                                 ` Ryan Tandy
  0 siblings, 0 replies; 59+ messages in thread
From: Ryan Tandy @ 2006-08-20  1:09 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar <listen <at> alexander.skwar.name> writes:

> You know, you can play your sniping game yourself. It's boring.

I apologize if I appear to be trolling.  That's not my intention at all; I'm
more likely just not getting something (happens fairly often).  If that's the
case, maybe you can help resolve (haha, punny) it.

According to you:
 - hostname should be set in /etc/hosts
 - domain name should be set in /etc/conf.d/net (i.e., NOT in /etc/hosts)

According to /etc/conf.d/net.example:
 - DNS settings can be specified either per-interface, or globally (lines 638
and 639)
 - for any DNS settings (fex dns_domain) to be specified, the dns_servers
setting *must* be specified as well (line 637) (is this the point I'm
misinterpreting?)

delta ~ # cat /etc/hosts
127.0.0.1     delta    localhost
delta ~ # cat /etc/conf.d/net
config_eth0=("dhcp")
dns_domain_eth0="mydomain.com"
delta ~ # /etc/init.d/net.eth0 restart > /dev/null
delta ~ # dnsdomainname
dnsdomainname: Unknown host

What have I misunderstood?

-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2006-08-20  1:19 UTC | newest]

Thread overview: 59+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 19:51 [gentoo-user] How to set domainname Anthony E. Caudel
2006-08-16 20:04 ` Mike
2006-08-16 21:41   ` Anthony E. Caudel
2006-08-16 23:18     ` Ryan Tandy
2006-08-16 23:48     ` Phil Sexton
2006-08-17  0:39       ` Anthony E. Caudel
2006-08-17  1:20         ` Phil Sexton
2006-08-17  5:10           ` Alexander Skwar
2006-08-17  5:31             ` Phil Sexton
2006-08-17  5:37             ` Phil Sexton
2006-08-17  6:01               ` Alexander Skwar
2006-08-17  6:28                 ` Phil Sexton
2006-08-17  8:26                   ` Alexander Skwar
2006-08-17 12:43                     ` Phil Sexton
2006-08-17 13:00                       ` Phil Sexton
2006-08-17 13:14                         ` Neil Bothwick
2006-08-17 13:48                           ` Phil Sexton
2006-08-17 13:14                         ` Alexander Skwar
     [not found]                           ` <44E47321.2060106@infoave.net>
2006-08-17 14:19                             ` Alexander Skwar
2006-08-17 14:31                               ` Phil Sexton
2006-08-17 14:47                                 ` Alexander Skwar
2006-08-17 14:58                                   ` Phil Sexton
     [not found]                                     ` <44E4C0DC.6070103@mid.email-server.info>
2006-08-18 16:45                                       ` Jarry
2006-08-18 17:13                                         ` [gentoo-user] " Andrey
2006-08-18 18:36                                         ` Alexander Skwar
2006-08-17 15:01                                   ` [gentoo-user] " Graham Murray
2006-08-17 15:21                                     ` Neil Bothwick
2006-08-17 22:52                                     ` Ryan Tandy
2006-08-18 10:55                                       ` Graham Murray
2006-08-19  3:59                                         ` Ryan Tandy
2006-08-19  5:26                                           ` [gentoo-user] " Alexander Skwar
2006-08-19 22:46                                             ` Ryan Tandy
2006-08-19 23:00                                               ` [gentoo-user] " Alexander Skwar
2006-08-20  1:09                                                 ` [gentoo-user] " Ryan Tandy
2006-08-17 15:01                                   ` [gentoo-user] " Phil Sexton
2006-08-17 19:19                                     ` Alexander Skwar
2006-08-17 13:13                       ` Alexander Skwar
2006-08-17 13:37                         ` Phil Sexton
2006-08-17  5:09         ` Alexander Skwar
2006-08-17  1:57       ` Mike
2006-08-17  5:07 ` Alexander Skwar
2006-08-17  6:03   ` Alexander Skwar
2006-08-17 13:06     ` Graham Murray
2006-08-17  6:22   ` Anthony E. Caudel
     [not found] ` <169ffc030608161354g5e8e9e28h3673983a72e4e5ae@mail.gmail.com>
2006-08-17  5:11   ` Alexander Skwar
2006-08-17  6:02     ` Alexander Skwar
2006-08-17  6:05     ` Phil Sexton
2006-08-17  8:27       ` Alexander Skwar
2006-08-17  7:31 ` Hans-Gunther Borrmann
2006-08-17  8:32   ` Alexander Skwar
2006-08-17  9:02     ` Hans-Gunther Borrmann
2006-08-17  9:19       ` Alexander Skwar
2006-08-17 12:48       ` Enrico Weigelt
2006-08-17  9:02 ` Roman Zilka
2006-08-17  9:17   ` Roman Zilka
2006-08-17 10:19   ` Hans-Gunther Borrmann
2006-08-17 10:50     ` Roman Zilka
2006-08-17 12:45       ` Enrico Weigelt
2006-08-18 17:01 ` [gentoo-user] How to set domainname (SOLVED) Anthony E. Caudel

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