DNS server defined in WireGuard connection is not used
I configured a custom DNS server in my WireGuard connection. In v1.34, NetworkManager will use the custom DNS server when connected to the WireGuard VPN, and everything works fine. But in v1.35, NetworkManager uses the DNS server defined in my WiFi connection, instead of the one defined in the WireGuard connection.
resolvectl
output in NetworkManager v1.34:
Link 3 (wlp4s0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 33 (wg-home)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.56
DNS Servers: 192.168.1.56
resolvectl
output in NetworkManager v1.35:
Link 3 (wlp4s0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 223.5.5.5
DNS Servers: 223.5.5.5 192.168.1.1 240e:3a2:5291:7a50::1
Link 33 (wg-home)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
I ran git bisect
and found 58287cbc is the first bad commit.