 |
|
 |
|
Next: [gentoo-user] Compiling binaries on a different s..
|
| Author |
Message |
External

Since: Dec 05, 2005 Posts: 54
|
(Msg. 1) Posted: Fri Oct 13, 2006 3:30 pm
Post subject: [gentoo-user] Domainname Archived from groups: linux>gentoo>user (more info?)
|
|
|
Hi folks;
Must be my day for questions today
Since the 2006.1 CD came out, I am finding that setting the domain name
in the domainname file aparently does not work any more. What is the
proper way to set this now? Im having difficulty tracking it down, and
im not seeing it in the net.example. Can someone please point me in the
right direction?
TIM
Timothy A. Holmes
IT Manager / Network Admin / Web Master / Computer Teacher
Medina Christian Academy
A Higher Standard...
Jeremiah 33:3
Jeremiah 29:11
Esther 4:14
--
gentoo-user.TakeThisOut@gentoo.org mailing list |
|
| Back to top |
|
 |  |
External

Since: May 04, 2007 Posts: 395
|
(Msg. 2) Posted: Fri Oct 13, 2006 3:50 pm
Post subject: Re: [gentoo-user] Domainname [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Friday 13 October 2006 15:24, Timothy A. Holmes wrote:
> Hi folks;
>
> Must be my day for questions today
>
> Since the 2006.1 CD came out, I am finding that setting the domain
> name in the domainname file aparently does not work any more. What is
> the proper way to set this now? Im having difficulty tracking it
> down, and im not seeing it in the net.example. Can someone please
> point me in the right direction?
It's now set in /etc/conf.d/net
The process is fully documented in /etc/conf.d/net.example and the old
domainname file is deprecated (or is that obsoleted?)
alan
--
gentoo-user.RemoveThis@gentoo.org mailing list |
|
| Back to top |
|
 |  |
External

Since: Dec 08, 2004 Posts: 235
|
(Msg. 3) Posted: Fri Oct 13, 2006 5:30 pm
Post subject: Re: [gentoo-user] Domainname [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Friday 13 October 2006 16:10, Neil Bothwick wrote:
> On Fri, 13 Oct 2006 15:43:17 +0200, Alan McKinnon wrote:
> > It's now set in /etc/conf.d/net
>
> And has been discussed at great length on this list over the last few
> weeks.
>
> > The process is fully documented in /etc/conf.d/net.example and the
> > old domainname file is deprecated (or is that obsoleted?)
>
> Obsoleted, it no longer works.
Well, I'm not using /etc/domainname, but I had the same problem in a
recent 2006.1 install (only a single ethernet interface, eth0).
------------------------------------------
# cat /etc/conf.d/net
# comments removed
config_eth0=( "dhcp" )
dhcpcd_eth0="-t 30"
dns_domain_lo="my.domain" # as per the handbook
------------------------------------------
# cat /etc/conf.d/hostname
# /etc/conf.d/hostname
# Set to the hostname of this machine
HOSTNAME="saturn"
------------------------------------------
# cat /etc/hosts
# comments removed
# IPv4 and IPv6 localhost aliases
127.0.0.1 localhost.localdomain localhost
::1 localhost
------------------------------------------
# cat /etc/resolv.conf
# Generated by dhcpcd for interface eth0
nameserver 10.0.0.1
------------------------------------------
With the above setup, hostname -d and dnsdomainname were failing
with "Unknown host", and the login prompt was showing "This is
saturn.unknown_domain".
I tried setting dns_domain_eth0="my.domain" in /etc/conf.d/net, with no
luck. As the comment in that file notes, for this explicit dns domain
setting to work, dns_servers_eth0 must be set, which it is not, since I
get the dns server address from dhcp.
So, I edited again /etc/conf.d/net, added the "nodns" option to the
dhcp_eth0, and set the dns_server_eth0="10.0.0.1" and the
dns_somain_eth0="my.domain" lines. Still no go.
I noticed that my DHCP server does not send a domain name to che client,
but only an IP address and a DNS address (as can be seen
in /etc/resolv.conf). However, if I edit /etc/resolv.conf and add
a "domain my.domain" line, hostname -d still does not work.
I tried changing the order of options in /etc/nsswitch.conf
and /etc/host.conf, still with no result.
Of course, after each of these changes did a full reboot to test them,
even though a restart of eth0 could probably have been enough. And,
after seeing the failure, I restored all the chianges to the previous
state.
Eventually, I edited /etc/hosts and added a line reading
10.0.0.14 saturn.my.domain saturn
and everything started working. Seems like, on this box, dnsdomainname
and agetty (or, more likely, glibc's lookup routines) only
read /etc/hosts.
The solution I found is clearly a workaround, since no doc I have read
mentions that the programs that read the dns domain name rely
on /etc/hosts, and I'd like to know if the result can be obtained in a
cleaner way. I read all the notes in /etc/conf.d/net.example. Did I miss
something?
Thanks for any help.
--
gentoo-user.DeleteThis@gentoo.org mailing list |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|