Setting up wireguard, systemd-resolved, resolvconf: no DNS

Hi,
in order to use wireguard on Vero 4K I installed these packages:
wireguard
wireguard-tools
resolvconf

I want to use wg-quick to establish the tunnel, and this depends on resolvconf.

For name resolution I want to use systemd-resolved.service.

So, my /etc/resolv.conf now looks like this:

osmc@osmc:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.

nameserver 127.0.0.53
options edns0 trust-ad

And this is the output of sudo resolvectl status:

osmc@osmc:~$ sudo resolvectl status
Global
       Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign

Link 2 (eth0)
Current Scopes: LLMNR/IPv4
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 3 (wlan0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

With this setup name resolution fails.

After starting wireguard using command sudo wg-quick up <wg-conf> name resolution works as exptected because /etc/resolv.conf is modified:

osmc@osmc:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.

nameserver 172.16.0.1
nameserver 127.0.0.53
options edns0 trust-ad

Traffic is routed correctly using wireguard tunnel:

osmc@osmc:~$ ip route get 1.1.1.1
1.1.1.1 dev ivpn-sui table 51820 src 172.30.102.237 uid 1000 
    cache

How can I fix the issue with name resolution if wireguard tunnel is down?
Can I configure a DNS for eth0?

THX

Hi cmonty14,

A discussion came up about the recently:

I believe the conclusion was to purge resolvconf (has issues with connman), and install openresolv instead.

Regards Tom.