View Single Post

   
  #4 (permalink)  
Old 02-21-2008, 07:12 AM
Jon
 
Posts: n/a
Default Re: Newbie 'domainname' question from install doc

On Thu, 15 Jan 2004 11:36:51 -0700, Lenroc wrote:

> On Thu, 15 Jan 2004 10:38:02 +0000, Peter Jensen wrote:
>
>> Try 'rc-update add domainname default', then 'rc' as root user.

>
> Thanks for the reply.
>
> 'rc-update show' already listed domainname in the boot runlevel. Adding it
> to the default runlevel, issuing an 'rc' command (which I must admit I
> don't know what it does...), and even rebooting left me with the same
> problem (issuing the command 'domainname' prints '(none)').
>
> I also tried removing 'domainname' from my boot runlevel, issuing 'rc',
> and rebooting again. Same problem.
>
> I'm sure it's just a fundamental misunderstanding on my part... I really
> have no idea what I'm doing here!


Hi,

Ran into the self same problem, and read somewhere that it could be fixed
by manually editing /etc/hosts.

FWIW, here's mine:

# /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.7 2002/11/18 19:39:22 azarah Exp $
#

#127.0.0.1 lundy localhost
#192.168.10.106 lundy.cathcart localhost

127.0.0.1 lundy.cathcart lundy localhost

The first 2 lines exhibited the problem you are having, but the third line
fixed it.

Not sure why though.....

HTH
--

jondotrogersatntlworlddotcom
Reply With Quote