From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sKPAGMGl+2MTAwAAbAwnHQ (envelope-from ) for ; Sun, 26 Feb 2023 19:32:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GG+/GMGl+2OKfgEA9RJhRA (envelope-from ) for ; Sun, 26 Feb 2023 19:32:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4244D1D454 for ; Sun, 26 Feb 2023 19:32:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWLoh-0003ZB-CW; Sun, 26 Feb 2023 13:32:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWLoe-0003Yg-G0 for help-guix@gnu.org; Sun, 26 Feb 2023 13:32:08 -0500 Received: from marvid.fr ([163.172.81.107] helo=courriel.marvid.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWLoc-0003K5-HB for help-guix@gnu.org; Sun, 26 Feb 2023 13:32:08 -0500 Received: from localhost (schwifty.marvid.fr [51.159.4.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by sahkopoika (Postfix) with ESMTPSA id 847357ED3D70; Sun, 26 Feb 2023 19:31:55 +0100 (CET) References: <87k00pi15e.fsf@colimite.fr> <87r0uw4e78.fsf@remworks.net> <06820a20-4a77-1707-a289-b83afdf7b026@makinata.eu> User-agent: mu4e 1.8.13; emacs 28.2 From: Sergiu Ivanov To: Bruno Victal , Remco van 't Veer Subject: Re: Examples of local-host-entries or hosts-service-type? Date: Sun, 26 Feb 2023 19:05:37 +0100 CC: help-guix@gnu.org In-reply-to: <06820a20-4a77-1707-a289-b83afdf7b026@makinata.eu> Message-ID: <87h6v8p9b8.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=163.172.81.107; envelope-from=sivanov@colimite.fr; helo=courriel.marvid.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FORGED_SPF_HELO=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677436349; a=rsa-sha256; cv=none; b=dryaosW31hQIKChFs+m7NeBxos5Sv88fJFk2R/YM45/GN11syKDnZwz/XePlYOp578vCeH fS+/VoZkwEa9oQ5Mfj9CWPm8cWAsRHYY4hcWb8MPQyozZAJHm5xzVK5weJPqnKmKDxMknb VrqOQQtIq8xXR/EzhG0g7bMjsLHiDkuJrDeHpe3eeRxIjpxh1cw+fRDClImuLo31ipmqnb OKitTvhjxy/vVF0mQv5hYKRdk3E5doITwX6s8lWhd9+wMivd4yquoeYIhyu2vNi8LDQEMx A4MYAW2tGTaTbn5GeZROmZpqkhmOQEDJXYiFgNy1mLW9NzmltCOaF/fz8r2jUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677436349; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=mGCW/8muE96mAckrncIhMKridCN1nNap6ncH+7mMENQ=; b=cRpFPw1UhwccLhkg7r7a7aFzjWfI65h89bAhF49Hab+1zNBNnXWI9Qc16BFSUmoInYiBW5 siTN49S3qLLw2NeYRbjIHj9DCJ/GuRC0lxGHVuw2IVqXlmOzIf0d9MfObmxmOF3cXGC8Dt 5ygjuBNzC7pi9JPZ74MK10lnETcJVj+bO5Hu+KYgg7snOnoU68sGuBsNWWMwNlOLAt7+Ua MK1+/QJlO+xA3NNJmldZjwFcirgXTMPln0pwUZKH0Ib2SSE6Wp+zKSF8pZxJ89Q1iOWD0k wLWWu7jV/7bxsYlztSDZHbmGKYlrt2JcjGEsbKwqEI29hvb1VLcbX/glPez0QQ== Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.49 X-Spam-Score: -0.49 X-Migadu-Queue-Id: 4244D1D454 X-TUID: woYLIWhlcHez Hi Bruno and Remco, Thank you for your messages and sorry for the delay with the answer. Bruno Victal [2023-02-21T17:45:09+0100]: > Hi Remco, > > On 2023-02-11 11:46, Remco van 't Veer wrote: >> (hosts-service-type config => >> (cons* (host "some.ip.address.1" "machine1") >> (host "some.other.ip.address" "machine2") >> (local-host-entries host-name))))) > > This is not the "right" way to do use the service, the proper way is to extend this service > (as described in the manual) by: > > (simple-service 'add-extra-hosts > hosts-service-type > (list (host "192.0.2.1" "example.com" > '("example.net" "example.org")) > (host "2001:db8::1" "example.com" > '("example.net" "example.org")))) Thanks a lot! I added this to my services in operating-system and it worked flawlessly. > You only override the hosts-service-type value when you don't want to have > 'localhost' as an alias of your _hostname_ or you don't want to set '127.0.0.1' / '::1' > as IPs for localhost / _hostname_. Oh, good to know that! >> local-host-entries > > This procedure is for internal guix use, it isn't really meant to be used outside. > In fact, I think it shouldn't be exported at all since it's only use is to set the default value of > hosts-service-type. I have just done a guix pull and the new version of Guix does not recognize local-host-entries any more. Apparently someone has removed the export, as you suggested. In terms of the docs, I don't find the entry for hosts-service-type here any more: https://guix.gnu.org/manual/en/manual/devel/en/html_node/Service-Reference.html even though this is where I found the information about hosts-service-type last week, and a cached version of the page still shows this entry. I guess Guix People are working on the subject at the moment, so I will contain my zeal to update the documentation a little bit :D - Sergiu