Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030368AbWEYU3T (ORCPT ); Thu, 25 May 2006 16:29:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030401AbWEYU3T (ORCPT ); Thu, 25 May 2006 16:29:19 -0400 Received: from perpugilliam.csclub.uwaterloo.ca ([129.97.134.31]:38834 "EHLO perpugilliam.csclub.uwaterloo.ca") by vger.kernel.org with ESMTP id S1030368AbWEYU3S (ORCPT ); Thu, 25 May 2006 16:29:18 -0400 Date: Thu, 25 May 2006 16:29:17 -0400 To: Alistair John Strachan Cc: Linus Torvalds , Jan Engelhardt , Kyle McMartin , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) Message-ID: <20060525202917.GB21926@csclub.uwaterloo.ca> References: <20060525141714.GA31604@skunkworks.cabal.ca> <200605251954.06227.s0348365@sms.ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605251954.06227.s0348365@sms.ed.ac.uk> User-Agent: Mutt/1.5.9i From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1087 Lines: 34 On Thu, May 25, 2006 at 07:54:06PM +0100, Alistair John Strachan wrote: > This is probably a broken configuration, but it would cause a regression for > me: > > [alistair] 19:53 [~] hostname > damocles > > [alistair] 19:52 [~] hostname --fqdn > localhost > > "localhost" isn't very descriptive if I'm trying to figure out which machine a > dmesg came from. rceng02:~# hostname rceng02 rceng02:~# hostname -f rceng02.eng.lan rceng02:~# head -1 /etc/hosts 127.0.0.1 rceng02.eng.lan localhost.localdomain localhost rceng02 rceng02:~# I always thought that was how it worked. The first hostname in /etc/hosts on the line containing the short name was used as the FQDN. Maybe that is only a gnu hostname thing. I seem to recall solaris had a domainname file that was used to find the domain part of the FQDN instead. Len Sorensen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/