Wireguard VPN and DNS leaks

From your very long text it is still unclear what you want to achieve. If you want to only use DNS server from the VPN connection when this connection is active - set ipv4.dns-priority/ipv6.dns-priority to a negative value. Read man nm-settings, search for the ipv4.dns-priority and ipv6.dns-priority.

1 Like