On Monday, September 28, 2020 9:39:17 AM MST Michael Catanzaro wrote:
You can do this, but again, you need to use the command line. E.g.
'resolvectl dns tun0 8.8.8.8'
We're actually no longer debating how systemd-resolved works; rather,
we're now debating how NetworkManager chooses to configure
systemd-resolved. systemd-resolved just does what it's told to do. It's
actually NetworkManager that decides to split DNS according to routing
by default as a matter of policy. It could do otherwise if it wanted
to, but I think this is a good default. Nothing stops you from changing
it though. :)
Michael,
By what mechanism does NetworkManager "split DNS according to routing"? If it
hasn't already made a request from both your cleartext and your VPN
connection's DNS servers, it has no way of knowing what network should be used
to get the right results. Routing and DNS are unrelated.
--
John M. Harris, Jr.