From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1GySHS-0000ZW-4i for garchives@archives.gentoo.org; Sun, 24 Dec 2006 12:16:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kBOCDAb0026522; Sun, 24 Dec 2006 12:13:10 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kBOC9R3s023705 for ; Sun, 24 Dec 2006 12:09:27 GMT Received: by ug-out-1314.google.com with SMTP id z38so3280660ugc for ; Sun, 24 Dec 2006 04:09:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; b=dD38Uo/ftIoe1P5xR3E2Fyg0zhu+Om5MoQedNGNsfztJwCaEAW9VmuYIRCfyfytCbyOFOUqAKRpJJih0KcbC1jEzhK7GQPSNSMDa6OSyFYwq2kDEh7xVEPnfR8D7xl2lX6LX+KqSSyDyA7xSvSUJPDuUZIraMYAP04YAJ08iTjk= Received: by 10.67.93.6 with SMTP id v6mr3191233ugl.1166962166253; Sun, 24 Dec 2006 04:09:26 -0800 (PST) Received: from ?192.168.0.5? ( [213.162.120.196]) by mx.google.com with ESMTP id m4sm15487110ugc.2006.12.24.04.09.25; Sun, 24 Dec 2006 04:09:25 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Misconfigured system Date: Sun, 24 Dec 2006 12:09:13 +0000 User-Agent: KMail/1.9.5 References: <9acccfe50612211116l393807b5m1e37ea7694309f89@mail.gmail.com> <9acccfe50612212145s3135178du26fd8154e74413de@mail.gmail.com> <20061222072041.2f296e26@osage.osagesoftware.com> In-Reply-To: <20061222072041.2f296e26@osage.osagesoftware.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8286321.OnGGkjZKHN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612241209.16077.michaelkintzios@gmail.com> X-Archives-Salt: 32c570b1-171a-4d73-880c-b612170eba70 X-Archives-Hash: 27ac146ee0208b4219d3adff56fbd49a --nextPart8286321.OnGGkjZKHN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 22 December 2006 12:20, David Relson wrote: > On Thu, 21 Dec 2006 21:45:07 -0800 > Kevin O'Gorman wrote: > > ...[snip]... > > > Oops. I should have known I could answer my own question with a > > little more digging. I now see that there's > > hostname > > hostname --fqdn > > dnsdomainname > > and they all work by looking in /etc/host.conf, and if (as is true > > here) that says > > to use the hosts file first, it looks for it in /etc/hosts, which has > > the fqdn. I seem to dimly recall that it actually looks for the first > > non-comment, but that > > cannot be quite right, because localhost comes first in my copy. > > Maybe it's the first > > routable IP number? > > > > I think this sub-problem is solved. I've commented my config files a > > bit more, so I > > won't make the same mistake again. > > > > ++ kevin > > Now, I'm curious! On my system, I see the following: > > dnsdomainname osagesoftware.com > hostname osage.osagesoftware.com > hostname --fqdn osage.osagesoftware.com > > /etc/hosts contains: > > 192.168.1.10 osage.osagesoftware.com osage > > "strace -feopen" shows that /etc/hosts is opened by "hostname --fqdn" > but not "hostname". > > What have I got wrong? > > Regards, > > David > > P.S. Greetings from one Kiewit alumni to another ... I discovered that the order of entries on the localhost line is important t= o=20 avoid hostname being identified as "none". I suppose in your system it=20 should be: 127.0.0.1 osage.osagesoftware.com osage localhost HTH =2D-=20 Regards, Mick --nextPart8286321.OnGGkjZKHN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBFjm3s5Fp0QerLYPcRAshkAKC1g0/xf8YoTeL//cX2tIXrMqXUlwCgmSiZ Q8KkpSdPLmL9/yXEZ1xHm7k= =Vp4n -----END PGP SIGNATURE----- --nextPart8286321.OnGGkjZKHN-- -- gentoo-user@gentoo.org mailing list