I've disabled (and stopped) systemd-resolved (the stub resolver) and replaced the resolv.conf contents with the nameservers of cloudflare and google DNS. However, the nameservers in resolv.conf file is being re-edited automatically and is replaced by
# Generated by NetworkManager
Do you have any VPN or some sort of network monitoring program installed? I found that they tend to mess with this more than they should and keep causing issues. Unfortunately I never really found a good solution for this other than uninstalling them.
Can I ask why you're going through all this in this manner?
If you just select "automatic" under your network settings, the dns that will be used will be whatever you have on your router. Or you have the ability to enter the dns servers right there to ensure it will be written to the correct file used.
The problem with changing files in this manner is you don't know if you're changing the correct file. This should have been done through your network settings to ensure you're changing the correct thing.
Doing a simple google search of the IP address you put up, it seems there is more than just changing that one file.
I'm using Cloudflare WARP. At first I thought it's the one doing the changes, but I realize that, as you can see in the code block, NetworkManager is changing the nameservers back to stub resolver. I don't know why it's doing that.
For some reason this is no longer happening. Initially I thought it's happening when toggling WARP but now I see that WARP changes the nameservers back to what I set before enabling it.
There's this stub resolver managed by systemd-resolved service (by systemd) that symlinks the contents to resolv.conf file. This stub resolver caches the DNS responses so all DNS requests made by the system go to 127.0.0.53 instead of the DNS nameservers you specify in the resolv file.
In order to solve this, and in order to use WARP without problems I un-symlinked the file, changed the contents of resolv file to the ones I like, enabled WARP, and disbaled it. This allowed WARP to restore the file contents, so when WARP is disabled the contents are back to what they are.
Sorry if this bothered you. Thanks for your input.
Closing the post as it's resolved. I'll post again if I see any problems.
It didn't bother me at all... However you're attempting to do something using third party software that Zorin has nothing to do with.
Cloudflare Warp has step by step instructions on their website for their own software. I use Cloudflare but only their normal DNS servers requiring no extra steps to get nothing more in return. Which is what you original asked about.
Warp is nothing more than fancified pseudo VPN requiring extra steps. I don't use free VPN's, as they are inherently insecure no matter who is giving it to you. Cloudflare has the linux software to install with a gui for Warp.
Plus the fact you're trying to interject Google's DNS into Cloudflare's DNS into their own software as you stated above. Why would Cloudflare want you to use Google? It wouldn't, and their software only uses their own Cloudflare DNS.
Warp also isn't a VPN in the traditional sense, it doesn't hide your IP, location or anything else. All it does is supposedly encrypt your data to make using public wifi "safer".
You should not have to go around changing files and/or deleting files to get software to work, in particular when you are referring to DNS. This should be a red flag, that something isn't right with whatever you are using.