Open seanho00 opened 6 years ago
I suspect there is an issue on OpenVZ (where systemd-networkd's DHCP client doesn't have kernel support, so I need to use dhcpcd). I hard-code the DNS server into the VPN interface's systemd *.network config file. In theory, when the interface is up, systemd-resolved should use that interface's DNS server. However, it cannot reach it.
Routing issue? systemd-networkd?
Have not extensively tested if it works to rely on VPN DNS server as default (not just to resolve VPN hostnames), and use fallback DNS only if VPN is not up.
Close when this has been tested.
https://github.com/ho-ansible/ansible/issues/53