I recently run into an apparent DNS resolution issue which I documented here and this led me to investigate /etc/resolv.conf further.
On my Linux Mint machine, this is a symlink that points to /run/systemd/resolve/stub-resolv.conf and whose contents are:
nameserver 127.0.0.53
options edns0 trust-ad
The file actually contains far more comment lines advising admins not to change its contents (which I had to do in the end to solve my original problem).
After researching around I think I understood that modern Linux systems use a new resolveconf package although, very disconcertingly, sudo apt changelog resolvconf reveals that the latest version, 1.82, is unstable.
My understanding is that 127.0.0.53 is redirecting DNS requests to resolveconf which in turn will do the necessary lookups. Could someone please confirm this?
This post claims that is is possible to create a file with alternative DNS servers which then, via sudo resolvconf -u, would update /etc/resolv.conf. Well, in version 1.82 this command does not exist. man resolvconf shows that the closest would be resolvectl but the page does not show any such -u option nor does it make any mention of the base file suggested. Have things changed again or was the comment in that post simply wrong?
My temporary shortcut is to remove the symlink /etc/resolv.conf and create a file with the same name and my choice of DNS servers but I suppose this completely renders the resolveconf package useless with potentially other negative side effects. Therefore I revert my hack straight after doing what I needed. In the meantime I am searching further clarity and I hope someone can shed some light here.
sudo apt changelog resolvconfreveals that the latest version, 1.82, is unstable." - No, it isn't.resolvconf (1.82) unstable; urgency=mediummeans this version was uploaded tounstable, which is a Debian (and, more relevant for you, Ubuntu) distribution. It's the normal distribution to upload to, from where it'll trickle down totestingand laterstabledistributions. Seeingunstablein that field is perfectly normal; in fact, seeing anything else there is the exception. It does not indicate anything about the stability of a package.