How to change to custom DNS?
Hello Bazzite team,
Today I wanted to change my DNS to the one from cloudflare. I tried to do that through the network settings from KDE but when I put in the DNS from cloudflare and set the method to manual I get an error message that claims it requires an adress or a route. I am not quite sure what that means. Could it be that since bazzite is mutable the DNS can‘t be changed or is there an other method to change it?
11 Replies
If you always want to use cloud flare. You can use systemd-resolved to set clouddlares DNS as yours.
You can drop a configuration file in /etc/systemd/resolve.conf.d/
With your desired configuration.
You can also temporarily set it to clouddlares using resolvectl dns
Sorry to bother again but where can I get such a config file?
You make it.
Review options with systemd-resolved's manpage
Sorry I think Im not clear enough, I am pretty new to Linux and I don’t have any kind of idea what has to go into this file, like I could try to just put the typical 1.1.1.1 from cloudflare into that file but I think that woun’t work
the other option is to configure your routers DHCP settings to go through cloudflare's DNS rather than your ISP. It should be somewhere in the DHCP settings
Should be something like that
Ok thanks I will try that
But does that count for both IPv4 and IPv6?
I would recommend reading the manpage for all the options.
Ok thanks
dnsmasq is installed, but disabled on bazzite, you could setup a dnsmasq configuration to set your DNS that way
oh weird, sorry messages did not load until i posted my response, i think M2's response is more helpful than mine
All good I just changed the dns on my router to something more secure and private, that is probably a good thing to do when I just want more privacy