Hi,
I use OpenVPN 2.4.4 x86_64-pc-linux-gnu client on Ubuntu 18.04LTS.
I use it to connect to our company network. It works but to intended DNS server is not taken. Instead it takes my router DNS.
My config looks like:
client
dev tun
proto udp
explicit-exit-notify
verify-x509-name "... COMPANY_SPECIFIC..."
route remote_host 255.255.255.255 net_gateway
resolv-retry infinite
nobind
persist-key
persist-tun
script-security 2
dhcp-option DNS 10.213.XXX.XXX
dhcp-option DNS 10.213.XXX.XXX
dhcp-option DOMAIN intern.XXX.de
dhcp-option DOMAIN XXX.de
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
<ca>
...MY_CERT...
</ca>
<cert>
-----END CERTIFICATE-----
</cert>
<key>
...MY_PRIVATE_KEY...
</key>
auth-user-pass
cipher AES-256-CBC
auth SHA512
comp-lzo yes
route-delay 4
verb 3
reneg-sec 0
remote vpn.XXX.de 8443
When I establish the connection I see for
systemd-resolve --status
Global
DNS Servers: 192.168.XXX.XXX
DNS Domain: speedport.ip
XXX.de
....
DNS-server is my router not the company DNS-server which should be 10.213.XXX.XXX.
How can I fix it?