From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7CAC4138330 for ; Tue, 4 Oct 2016 00:04:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1E27E0C25; Tue, 4 Oct 2016 00:04:04 +0000 (UTC) Received: from mail-1.ca.inter.net (mail-1.ca.inter.net [208.85.220.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8EE20E0C0E for ; Tue, 4 Oct 2016 00:04:04 +0000 (UTC) Received: from localhost (offload-3.ca.inter.net [208.85.220.70]) by mail-1.ca.inter.net (Postfix) with ESMTP id BD4832EA076 for ; Mon, 3 Oct 2016 20:04:03 -0400 (EDT) Received: from mail-1.ca.inter.net ([208.85.220.69]) by localhost (offload-3.ca.inter.net [208.85.220.70]) (amavisd-new, port 10024) with ESMTP id BjD1vi7zwOSR for ; Mon, 3 Oct 2016 20:04:03 -0400 (EDT) Received: from ca.inter.net (host-45-58-198-15.dyn.295.ca [45.58.198.15]) by mail-1.ca.inter.net (Postfix) with SMTP id 72DB92EA077 for ; Mon, 3 Oct 2016 20:04:02 -0400 (EDT) Received: by ca.inter.net (sSMTP sendmail emulation); Mon, 03 Oct 2016 20:04:02 -0400 Date: Mon, 3 Oct 2016 20:04:02 -0400 From: Philip Webb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] hostname problem : solved Message-ID: <20161004000402.GG1705@ca.inter.net> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20161002114148.GA1808@ca.inter.net> <20161002114710.kvwtki4ckeyh4x6t@Securitron.fritz.box> <20161002120651.GA1706@ca.inter.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161002120651.GA1706@ca.inter.net> User-Agent: Mutt/1.7.0 (2016-08-17) X-Archives-Salt: 13439939-385d-4e4e-8fda-b3637cadc476 X-Archives-Hash: a4b7103a79dc3858819a49ea1f64adeb 161002 Philip Webb wrote: > 161002 Hinnerk van Bruinehsen wrote: >> On Sun, Oct 02, 2016 at 07:41:48AM -0400, Philip Webb wrote: >>> I did a big system update yesterday ( 52 pkgs ), incl Net-tools Dhcpcd , >>> & on restarting today found that hostname is not being set : >> Check if sys-apps/net-tools has the "hostname" useflag enabled >> it's enabled by default so you may encounter the fallout of a -* setup. > Yes, that was it (red face). Thanks for the prompt reply. Wanting to make a note for the future in case this happens again, I have written : Hostname set by /etc/init.d/hostname : the binary /bin/hostname is provided by Net-tools + USE="hostname" ; hostname needs to be set to localhost to make apps work properly : this is done via /etc/hosts , wh belongs to Baselayout & shd contain '127.0.0.1 localhost' ; there is also /etc/conf.d/hostname , wh belongs to Openrc & contains 'hostname="localhost"'. However, I'm now wondering whether/why the system needs both /etc/hosts + /etc/conf.d/hostname , which seem to do the same thing. Can anyone explain ? -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca