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?