resolvectl status # servers and domains per interface
resolvectl query example.org # resolve through the system resolver
resolvectl flush-caches
resolvectl statistics
ls -l /etc/resolv.conf # usually a symlink to the stub (127.0.0.53)
/etc/resolv.conf pointing at 127.0.0.53 is normal: the local stub forwards to the real servers shown by resolvectl status. Set DNS servers through Netplan or NetworkManager rather than editing resolv.conf. If DNS works for dig @1.1.1.1 but not for normal programs, look at the stub and the per-interface servers.