unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Bone Baboon <bone.baboon@disroot.org>
To: Gary Johnson <lambdatronic@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Edits to `etc/resolv.conf` being overwritten
Date: Thu, 08 Apr 2021 15:07:48 -0400	[thread overview]
Message-ID: <878s5sfvcr.fsf@disroot.org> (raw)
In-Reply-To: <87o8eqxix7.fsf@disroot.org>


Gary Johnson writes:
> 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 do not have NetworkManager installed and am not using
`network-manager-service-type`.  There is no NetworkManager service
listed when I run `sudo herd status`.

The commands I am using to connect to the internet are:

```
sudo ip link set <wireless-interface> up
sudo wpa_supplicant -Dnl80211 -i<wireless-interface> -c/path/to/wpa/config.conf -B
sudo dhclient <wireless-interface>
```
It is almost like `sudo dhclient <wireless-interface>` is taking
instruction from the router (provided by my internet service provider)
to overwrite `/etc/resolv.conf` to the DNS of my internet service
provider.

> (use-modules (ice-9 rdelim))
>
> (define my-host-aliases (with-input-from-file "/path/to/your/file"
>                                                (lambda () (read-delimited ""))))

Thank you for sharing this.  It works for me.


  reply	other threads:[~2021-04-08 19:08 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
2021-04-08 19:07           ` Bone Baboon [this message]
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=878s5sfvcr.fsf@disroot.org \
    --to=bone.baboon@disroot.org \
    --cc=help-guix@gnu.org \
    --cc=lambdatronic@disroot.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).