Set up a wireguard client, they said, it will be easy, they said.
Wrong.
I have disabled and masked systemd-resolved as suggested in various posts even in this forum.
I have put the VPN provider’s DNS into /etc/resolve.conf
I have set NetworkManager to do nothing with regards to DNS (adding dns=none in the NetworkManager.conf file)
When bringing the wireguard interface up using wg-quick, I get an error saying:
Failed to set DNS configuration: Could not activate remote peer 'org.freedesktop.resolve1': activation request failed: unknown unit
which aborts the operation altogether
No idea what causes it but since I already want manual DNS configuration, no big deal, I just removed the DNS line in the wireguard configuration file and ran wg-quick up again.
This time it worked. I get connectivity. Thinking I have completed my goal, I was quick to declare victory.
But this is where I get stuck. Webpages can’t seem to resolve quickly. I type in google.com and sometimes it loads instantly, sometimes it just fails to load altogether. I have switched all kinds of proxies and DNSoverHTTPS in the settings, so it is not the browser.
I type in resolvectl query google.com and bang, I get the same error as before (prior to removing the DNS line from the wireguard config):
google.com: resolve call failed: Could not activate remote peer 'org.freedesktop.resolve1': activation request failed: unknown unit
well guess what, I shouldn’t have stopped systemd-resolved because apparently now everything just breaks.
But what about setting custom DNS and not letting my system override it with whatever my network gateway spits?
moderation: removed ranting