I'm trying to change my DNS settings on my Debian 12 VPS, and by this I mean, I want to use a public resolver like 1.1.1.1 instead of my VPS host's resolver.
I remember in Debian 11 I could just edit the /etc/resolv.conf file, and restart the resolvconf.service and everything would work fine.
However, on Debian 12, when I go to edit the /etc/resolv.conf it has a big warning:
# 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 "resolvectl status" to see details about the actual nameservers.
So if I can't edit this file, where can I configure my resolver?
I tried reading man resolvconf and man resolv.conf but this confused me even further.
Any ideas?