Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux