From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: /etc/hosts Date: Tue, 13 Nov 2018 16:16:23 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_116420_403974524.1542122183637" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMaZf-0003s6-Om for help-guix@gnu.org; Tue, 13 Nov 2018 10:26:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMaQm-00061l-KH for help-guix@gnu.org; Tue, 13 Nov 2018 10:16:48 -0500 Received: from w1.tutanota.de ([81.3.6.162]:50522) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMaQj-0005se-RL for help-guix@gnu.org; Tue, 13 Nov 2018 10:16:42 -0500 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 9D5DCFA7C72 for ; Tue, 13 Nov 2018 15:16:23 +0000 (UTC) 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: Help Guix ------=_Part_116420_403974524.1542122183637 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, Guix Help! I've added a line in /etc/hosts 5.5.5.5 site.com But site.com points on its usual ip. Restart wpa_supplicant and restart pc did not help. How to work with hosts on GuixSD? ------=_Part_116420_403974524.1542122183637 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, Guix Help! I've added a line in /etc/hosts
5.5.5.5 site.com

But site.com points on its usual ip. Restart wpa_supplicant and restart pc did not help.
How to work with hosts on GuixSD?
------=_Part_116420_403974524.1542122183637-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Devan Carpenter Subject: Re: /etc/hosts Date: Wed, 14 Nov 2018 04:40:22 +1300 Message-ID: <20181113154022.6rns65wp6pu4ol6g@kowloon> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMao7-0001Wl-DK for help-guix@gnu.org; Tue, 13 Nov 2018 10:40:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMao3-0000T0-Uk for help-guix@gnu.org; Tue, 13 Nov 2018 10:40:51 -0500 Received: from q.meshwith.me ([91.121.161.13]:38451) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMao3-0000Nn-O0 for help-guix@gnu.org; Tue, 13 Nov 2018 10:40:47 -0500 Content-Disposition: inline In-Reply-To: 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: znavko@tutanota.com Cc: Help Guix There are plenty of reasonable causes for this behaviour, and you can set your hosts file in the system configuration. However the most simple solution is chattr. Like so: 1. make your changes to /etc/hosts 2. run (as root) `chattr +i /etc/hosts` Now the other programs will not be able to edit the file (and neither will you be able to.) To make it writable again run `chattr -i /etc/hosts` Hope this helps! znavko@tutanota.com transcribed 814 bytes: > Hello, Guix Help! I've added a line in /etc/hosts > 5.5.5.5 site.com > > But site.com points on its usual ip. Restart wpa_supplicant and restart pc did > not help. > How to work with hosts on GuixSD? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: /etc/hosts Date: Tue, 13 Nov 2018 11:37:49 -0500 Message-ID: <20181113163749.GB7134@jasmine.lan> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMbhN-0002Bt-U9 for help-guix@gnu.org; Tue, 13 Nov 2018 11:37:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMbhJ-0002FR-3y for help-guix@gnu.org; Tue, 13 Nov 2018 11:37:57 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:44357) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMbhI-0002AC-Oh for help-guix@gnu.org; Tue, 13 Nov 2018 11:37:53 -0500 Content-Disposition: inline In-Reply-To: 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: znavko@tutanota.com Cc: Help Guix --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 13, 2018 at 04:16:23PM +0100, znavko@tutanota.com wrote: > Hello, Guix Help! I've added a line in /etc/hosts > 5.5.5.5 site.com >=20 > But site.com points on its usual ip. Restart wpa_supplicant and restart p= c did not help. > How to work with hosts on GuixSD? You can specify your hosts file in your operating system configuration file ('config.scm'): https://www.gnu.org/software/guix/manual/en/html_node/operating_002dsystem-= Reference.html#index-hosts-file You can maintain your hosts file "by hand" in, for example, /etc/my-hosts and refer to it from config.scm like this (untested): ------ (hosts-file (local-file "/etc/my-hosts")) ------ --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvq/d0ACgkQJkb6MLrK fwhrQxAAr7+ikMVXeGM6+582ByRK4dKDydqwyiWiC91VHLdUR/wm2kxacKFem1VG 7tNkjV8R4hGE4Imz1pKag1LQdr3LQFUYzliICXt0MWX7C1dANA/VEQ+Fgzja+oMk 2gol3+dhe9zTVgcWYXv9JXduH8rH6ZeTTco0GBiQYaj989Hvojb0aSBWqF1d71cA 4PmRsV/FvtirpQvp0aJu2PYf2xQB5/WXqj4rXo1vLo+hHN60i/2JhjVyhalIoOCq dNxeTsNiL6tGTYdLz3U+MDH/eaK1J6IYOSQjrx/HIe6erbwaKpfTmH4Kmf+/kCD4 56KW88wYeCFjSfV0AQQyUvuPjGrzD2E0a2nT0x9GixCse13WBSmYgL+O/lNc8lgi fxZ2RQhN8i7/BUsJyVgqLoZttri8pY7seXn1g96Q5mxUUB3lqdgPqn1kfQ4+++1C AgDFbXcbqvVk7dNoCsx9sSnB2DrRWO+HN0eOnPBhNimMRAjzL/qGM9t3TB/uDuO6 tZSbQIaccsEM1D/0ODDc0hEHxjuNGhaMioGlxDuO5lFA7biaV57YASMmzhHGsPUt 2dXWxzHOF6sZrvI4m/ozI/iHQ/HdxVq5M+FKq8jCjosQoPuJE8XASrc4TvSaDMzM RR/IKTgF7Hr4X4XFk5Mo+Qws3gCRebD/VFdsoZAgmmG/JoXV/4c= =J7a3 -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj--