On Sat, 14 Jan 2023 20:39:49 +0100 lejeczek via users wrote:
I wonder now, if it is possible, nowadays, to "bypass" systemd's resolver - except if a separate DNS server is ran locally.
Just disable (and mask for belt and suspenders) systemd-resolved. Then edit /etc/NetworkManager/NetworkManager.conf and add dns=none after the "[main]" section, then you can remove the /etc/resolv.conf symlink and replace it with a real file you can point to your real server and network manager and systemd will leave you alone :-).
I do that, plus run dnsmasq as a local dns server for my lan which picks up all the names from /etc/hosts so everyone on the local network can talk (as long as my main server is up, anyway :-). Of course, I also have to tell the DHCP on my router to inform everyone to point to my local server for DNS.