From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco van Hulten Subject: Re: set dnsdomainname Date: Wed, 6 Mar 2019 20:23:34 +0100 Message-ID: <20190306202334.463b2435@jasniac.instanton> References: <20190305113013.2c1821a5@gfi063209.klientdrift.uib.no> <20190305194441.459e7b7b@jasniac.instanton> <87lg1szc9a.fsf@roquette.mug.biscuolo.net> <87zhq8gxyu.fsf@nckx> Reply-To: marco@hulten.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1c9C-0007Am-1q for help-guix@gnu.org; Wed, 06 Mar 2019 14:24:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1c99-0000lq-1G for help-guix@gnu.org; Wed, 06 Mar 2019 14:24:08 -0500 Received: from alfons.uib.no ([2001:700:200:30::141]:46807) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1c95-0000VN-K0 for help-guix@gnu.org; Wed, 06 Mar 2019 14:24:05 -0500 In-Reply-To: <87zhq8gxyu.fsf@nckx> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Tobias Geerinckx-Rice Cc: help-guix@gnu.org Je 6 mrt 10:21 skribis Tobias: > Giovanni Biscuolo wrote: > > I'd prefer setting the contents "inline" declaring each hosts > > record... but I don't know how to do it =20 >=20 > Probably easier than you thought! >=20 > (host-name "lapdog.tobias.gr") > ;; This creates a file /gnu/store/=E2=80=A6-hosts and links it as=20 > /etc/hosts. > (hosts-file (plain-file "hosts "\ > 127.0.0.1 lapdog.tobias.gr localhost > ::1 lapdog.tobias.gr localhost > ")) >=20 > Doing it in Scheme also allows one to factor out some of that ugly=20 > repetition, if I'd bother. Great, this works fine! Thanks, Giovanni and Tobias! =E2=80=94Marco