unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Devan Carpenter <mail@dvn.me>
To: znavko@tutanota.com
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: /etc/hosts
Date: Wed, 14 Nov 2018 04:40:22 +1300	[thread overview]
Message-ID: <20181113154022.6rns65wp6pu4ol6g@kowloon> (raw)
In-Reply-To: <LRCdFak--3-1@tutanota.com>

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?

  reply	other threads:[~2018-11-13 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-13 15:16 /etc/hosts znavko
2018-11-13 15:40 ` Devan Carpenter [this message]
2018-11-13 16:37 ` /etc/hosts Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181113154022.6rns65wp6pu4ol6g@kowloon \
    --to=mail@dvn.me \
    --cc=help-guix@gnu.org \
    --cc=znavko@tutanota.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).