#785227 - `$ cat /etc/resolv.conf` should look like:

```

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

# 127.0.0.53 is the systemd-resolved stub resolver.

# run "systemd-resolve --status" to see details about the actual nameservers.

#nameserver 127.0.0.53

#search lan

nameserver 9.9.9.9

nameserver 1.1.1.1

```

Also use [Quad9](https://www.quad9.net)'s DNS `9.9.9.9` as well as #Cloudflare's (`1.1.1.1`). You will need to keep checking until you understand how often it gets overwritten as the warning in `resolv.conf` says.

You can use [Quad9](https://www.quad9.net) as a private #DNS for your mobile. Go to Settings > Network & Internet > Private DNS > select 'Private' and set it to 'dns.quad9.net'.

#Quad9 are in trouble, do help them out **Youtube**[](https://youtu.be/oSZYlU-cfzY) and #boycott #Sony.

Reply to this note

Please Login to reply.

Discussion

The missing piece!

You need to `sudo chattr +i /etc/resolv.conf` *before* `systemctl restart systemd-resolved` as the `systemd-` command will overwrite `resolv.conf` with the original text you don't want.

`chattr` will work for *some* distros and not others and using the `-f` flag only suppresses the error message **not** fixes the fail.

Word.

#DNS #privacy #security

https://odysee.com/@RTP:9/set-permanent-linux-dns-settings-for:3

nostr:note1qqqqqpfv7w80wl23dh9k2dcgjv5f6n5uqnnhk5ruhpp97vwvpu0suy5k0f