Re: [gentoo-user] How to set domainname

2006-08-18 Thread Graham Murray
Ryan Tandy [EMAIL PROTECTED] 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

Re: [gentoo-user] How to set domainname

2006-08-18 Thread Jarry
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

Re: [gentoo-user] How to set domainname

2006-08-18 Thread Ryan Tandy
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
Alexander Skwar wrote: Mark schrieb: On 16/08/06, Anthony E. Caudel [EMAIL PROTECTED] 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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Anthony E. Caudel
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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 --

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Hans-Gunther Borrmann
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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,

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
Phil Sexton schrieb: Alexander Skwar wrote: Mark schrieb: On 16/08/06, Anthony E. Caudel [EMAIL PROTECTED] 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)

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Roman Zilka
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Hans-Gunther Borrmann
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? [EMAIL

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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? [EMAIL

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Hans-Gunther Borrmann
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Roman Zilka
# 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 --

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Enrico Weigelt
* Roman Zilka [EMAIL PROTECTED] 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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Enrico Weigelt
* Hans-Gunther Borrmann [EMAIL PROTECTED] 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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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:

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Graham Murray
Alexander Skwar [EMAIL PROTECTED] 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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Neil Bothwick
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.

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Graham Murray
Alexander Skwar [EMAIL PROTECTED] 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

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Phil Sexton
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/

Re: [gentoo-user] How to set domainname

2006-08-17 Thread Alexander Skwar
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

[gentoo-user] How to set domainname

2006-08-16 Thread Anthony E. Caudel
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Mike
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Anthony E. Caudel
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Ryan Tandy
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 ~ #

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Anthony E. Caudel
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Phil Sexton
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)

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Mike
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Alexander Skwar
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Phil Sexton
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Alexander Skwar
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

Re: [gentoo-user] How to set domainname

2006-08-16 Thread Alexander Skwar
Mark schrieb: On 16/08/06, Anthony E. Caudel [EMAIL PROTECTED] 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