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
M2
M26mo ago
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
VAtrick
VAtrickOP6mo ago
Sorry to bother again but where can I get such a config file?
M2
M26mo ago
You make it. Review options with systemd-resolved's manpage
VAtrick
VAtrickOP6mo ago
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
TyberBei
TyberBei6mo ago
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
M2
M26mo ago
[Resolve]
DNS=1.1.1.1
[Resolve]
DNS=1.1.1.1
Should be something like that
VAtrick
VAtrickOP6mo ago
Ok thanks I will try that But does that count for both IPv4 and IPv6?
M2
M26mo ago
I would recommend reading the manpage for all the options.
VAtrick
VAtrickOP6mo ago
Ok thanks
DevilFish303
DevilFish3036mo ago
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
VAtrick
VAtrickOP6mo ago
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
Want results from more Discord servers?
Add your server