Systemd-resolved not querying DNS server set by openvpn

I have OpenVPN running on my fedora 33 laptop. I’m using /etc/openvpn/scripts/update-systemd-resolved to update systemd-resolved. When openvpn runs I see:

   Wed Oct 14 15:07:15 2020 /etc/openvpn/scripts/update-systemd-resolved tun0 1400 1472 init
    <14>Oct 14 15:07:15 update-systemd-resolved: Link 'tun0' coming up   
    <14>Oct 14 15:07:15 update-systemd-resolved: Adding IPv4 DNS Server
    <14>Oct 14 15:07:15 update-systemd-resolved: SetLinkDNS(7 1 2 4 192 168 2 1)
Wed Oct 14 15:07:15 2020 /sbin/ip route add via

and my resolvectl status shows:

   Link 7 (tun0)
      Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes                      
       LLMNR setting: yes                      
MulticastDNS setting: no                       
  DNSOverTLS setting: no                       
      DNSSEC setting: no                       
    DNSSEC supported: no                       
  Current DNS Server:              
         DNS Servers: 

But DNS fails unless i explicitly try against The odd thing was it was working prior to the latest round of updates to fedora 33.


1 Like
sudo nmcli connection modify id VPN_CON \
    ipv4.dns-search ~. ipv6.dns-search ~. \
    ipv4.dns-priority -50 ipv6.dns-priority -50