From: Gary Johnson <lambdatronic@disroot.org>
To: Bone Baboon <bone.baboon@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Edits to `etc/resolv.conf` being overwritten
Date: Wed, 07 Apr 2021 10:34:28 -0400 [thread overview]
Message-ID: <87o8eqxix7.fsf@disroot.org> (raw)
In-Reply-To: <87czv7f5v6.fsf@disroot.org>
Bone Baboon <bone.baboon@disroot.org> writes:
> Thank you for the explanation and detailed examples.
>
> I now have my system configuration providing the contents of
> `/etc/resolv.conf` with a service.
>
> However the contents of `/etc/resolv.conf` is still being overwritten
> with entries for my internet service provider's DNS. After some testing
> it appears to be happening when I run this command `sudo dhclient
> <wireless-interface>`.
That's unfortunate to hear. Perhaps you could check out the
network-manager-service-type? I believe it includes a parameter that
lets you tell NetworkManager not to overwrite /etc/resolv.conf. The
command-line interface for NetworkManager is called nmtui. This is what
I use on my machine.
> I also appreciate the `hosts-file` example you shared as I am thinking
> about using `https://github.com/StevenBlack/hosts` as a block list. In
> this case the contents of `my-host-aliases` would be very large. With
> Guile how would I have the definition of `my-host-aliases` in it's own
> file and import and use it in my system configuration?
(use-modules (ice-9 rdelim))
(define my-host-aliases (with-input-from-file "/path/to/your/file"
(lambda () (read-delimited ""))))
Happy hacking,
Gary
--
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Why is HTML email a security nightmare? See https://useplaintext.email/
Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
next prev parent reply other threads:[~2021-04-07 14:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-02 1:36 Edits to `etc/resolv.conf` being overwritten Bone Baboon
2021-04-02 4:57 ` Jérémy Korwin-Zmijowski
2021-04-02 7:43 ` phil
2021-04-02 13:08 ` Bone Baboon
2021-04-02 16:07 ` Gary Johnson
2021-04-06 21:41 ` Bone Baboon
2021-04-07 14:34 ` Gary Johnson [this message]
2021-04-08 19:07 ` Bone Baboon
2021-04-08 19:17 ` Vincent Legoll
2021-04-10 3:40 ` Bone Baboon
2021-04-10 9:23 ` Vincent Legoll
2021-04-10 19:50 ` Bone Baboon
2021-04-09 3:22 ` Vladimir Sedach
2021-04-10 3:28 ` Bone Baboon
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=87o8eqxix7.fsf@disroot.org \
--to=lambdatronic@disroot.org \
--cc=bone.baboon@disroot.org \
--cc=help-guix@gnu.org \
/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).