The answer that worked for me and this guide is based on is here
https://discussion.fedoraproject.org/t/systemwide-dns-in-silverblue-kinoite-override-dns-settings-for-dot/129636
steps to do
- navigate to
/etc/systemd/
- right click and select “open as administrator” from the dropdown menu
make a folder named resolved.conf.d at
/etc/systemd/
- now you enter path
/etc/systemd/resolved.conf.d/
-
make there a file “yourname.conf” - it can be whatever you like I simply named mine nextdns.conf
-
paste there the systemd-resolved setup from nextdns website
You can now reboot or if you want to use nextdns in your current session type in terminal
sudo systemctl restart systemd-resolved
That’s it. You now running nextdns without any hiccups.
If you want to check is it working type
resolvectl status
P.S. Network manager on KDE or Gnome won’t work because the systemd-resolved takes priority over that, so you can mess with that but this way is simpler and you don’t touch any present files
Librewolf users should change browser dns manually. I tried troubleshooting for a while just to find out the browser is using different DNS