Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-user] Domainname

 
   Soft32 Home -> Linux -> User RSS
Next:  [gentoo-user] Compiling binaries on a different s..  
Author Message
Timothy A. Holmes

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 Smile

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
Login to vote
Alan McKinnon

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 Smile
>
> 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
Login to vote
Etaoin Shrdlu

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
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] domainname = (none) ? - Hello, I installed Gentoo Linux 2006.1 by a network installation from the minimal ISO CD. But my problem is that I..

[gentoo-user] Problems with domainname - Hi, I've already set my domain name (pixelsolutions.com.br) on /etc/hosts, /etc/conf.d/domainname and /etc/resolv.conf...

[gentoo-user] missing domainname - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Running all ~x86 system. After upgrading to the latest..

[gentoo-user] Domainname configuration - Hi, I set DNSDOMAIN variable to my domain in /etc/conf.d/domainname file, but see it: embedded etc # domainname..

[gentoo-user] How to set domainname - As of baselayout-1.12.4, the domainname init script is no longer used and the Gentoo Handbook no longer tells how to se...

[gentoo-user] What is up with the new "domainname" situati.. - How is it that the baselayout has changed and now the domainname script is missing from /etc/init.d and all sorts of..
       Soft32 Home -> Linux -> User All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
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

Categories:
 Windows
  Linux
 Mac
 PDA



[ Contact us | Terms of Service/Privacy Policy ]