public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] setting system's domain name
@ 2007-01-21 15:45 John covici
  2007-01-21 16:12 ` Daniel Pielmeier
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: John covici @ 2007-01-21 15:45 UTC (permalink / raw
  To: gentoo-user

I am having problems setting the domain name of a new gentoo
installation.  I looked at /etc/conf.d/net.examples and tried what
seemed to me what they were looking for such as
DNS_LO="<domain name>"

The host name works, although I would like to not have it wipe out my
resolv.conf.  I can set hostname to the fully qualified name using the
hostname command, but gentoo still says unknown domain name when I log
in, so I am not sure this is correct.

Any assistance would be appreciated.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] setting system's domain name
  2007-01-21 15:45 [gentoo-user] setting system's domain name John covici
@ 2007-01-21 16:12 ` Daniel Pielmeier
       [not found]   ` <17843.37313.356167.606629@ccs.covici.com>
  2007-01-21 16:33 ` Andrey Gerasimenko
  2007-01-21 16:42 ` Daniel Pielmeier
  2 siblings, 1 reply; 6+ messages in thread
From: Daniel Pielmeier @ 2007-01-21 16:12 UTC (permalink / raw
  To: gentoo-user

2007/1/21, John covici <covici@ccs.covici.com>:
> I am having problems setting the domain name of a new gentoo
> installation.  I looked at /etc/conf.d/net.examples and tried what
> seemed to me what they were looking for such as
> DNS_LO="<domain name>"
>
> The host name works, although I would like to not have it wipe out my
> resolv.conf.  I can set hostname to the fully qualified name using the
> hostname command, but gentoo still says unknown domain name when I log
> in, so I am not sure this is correct.

try something like this in /etc/conf.d/net

dns_domain="<domain-name>"
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] setting system's domain name
       [not found]   ` <17843.37313.356167.606629@ccs.covici.com>
@ 2007-01-21 16:24     ` Daniel Pielmeier
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Pielmeier @ 2007-01-21 16:24 UTC (permalink / raw
  To: gentoo-user

> Will this keep my /etc/resolv.conf in tact?

On my system, yes, but backup /etc/resolv.conf and try it out with
restarting /etc/init.d/net.eth0.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] setting system's domain name
  2007-01-21 15:45 [gentoo-user] setting system's domain name John covici
  2007-01-21 16:12 ` Daniel Pielmeier
@ 2007-01-21 16:33 ` Andrey Gerasimenko
  2007-01-21 16:42 ` Daniel Pielmeier
  2 siblings, 0 replies; 6+ messages in thread
From: Andrey Gerasimenko @ 2007-01-21 16:33 UTC (permalink / raw
  To: gentoo-user

On Sun, 21 Jan 2007 18:45:01 +0300, John covici <covici@ccs.covici.com>  
wrote:

> I am having problems setting the domain name of a new gentoo
> installation.  I looked at /etc/conf.d/net.examples and tried what
> seemed to me what they were looking for such as
> DNS_LO="<domain name>"
>
> The host name works, although I would like to not have it wipe out my
> resolv.conf.  I can set hostname to the fully qualified name using the
> hostname command, but gentoo still says unknown domain name when I log
> in, so I am not sure this is correct.
>
> Any assistance would be appreciated.
>

After I set the host name in /etc/conf.d/hostname (so that  
/etc/init.d/hostname could set it on startup), set the domain name with  
#domainname, and allowed it to be resolved to 129.0.0.1 in hosts, the log  
in screen started to show the correct host and domain.

It looks like the login screen displays the FQDN whenever it can be  
resolved.

-- 
Andrei Gerasimenko

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] setting system's domain name
  2007-01-21 15:45 [gentoo-user] setting system's domain name John covici
  2007-01-21 16:12 ` Daniel Pielmeier
  2007-01-21 16:33 ` Andrey Gerasimenko
@ 2007-01-21 16:42 ` Daniel Pielmeier
  2007-01-21 18:28   ` Daniel Pielmeier
  2 siblings, 1 reply; 6+ messages in thread
From: Daniel Pielmeier @ 2007-01-21 16:42 UTC (permalink / raw
  To: gentoo-user

maybe the dns_domain setting is wrong i have this in my config but iam
not sure if this really sets the domainname

you can also try setting this in /etc/hosts

127.0.0.1       localhost
127.0.0.1       hostname,domain-name hostname
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] setting system's domain name
  2007-01-21 16:42 ` Daniel Pielmeier
@ 2007-01-21 18:28   ` Daniel Pielmeier
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Pielmeier @ 2007-01-21 18:28 UTC (permalink / raw
  To: gentoo-user

sorry it should be

> 127.0.0.1       localhost
> 127.0.0.1       hostname.domain-name hostname

Hostname and domain-name must have a full stop in between.
-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2007-01-21 18:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-21 15:45 [gentoo-user] setting system's domain name John covici
2007-01-21 16:12 ` Daniel Pielmeier
     [not found]   ` <17843.37313.356167.606629@ccs.covici.com>
2007-01-21 16:24     ` Daniel Pielmeier
2007-01-21 16:33 ` Andrey Gerasimenko
2007-01-21 16:42 ` Daniel Pielmeier
2007-01-21 18:28   ` Daniel Pielmeier

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