I have tested to use the DNS option on the full server by adding to the push lines so the config file now looks like this:
port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/VPN.crt
key /etc/openvpn/keys/VPN.key
dh /etc/openvpn/keys/dh2048.pem
tls-auth /etc/openvpn/keys/ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0 'nopool'
ifconfig-pool 10.8.0.2 10.8.0.127 255.255.255.0
client-config-dir /etc/openvpn/ccdw
ifconfig-pool-persist ipp.txt
push "route 10.0.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.0.0.3"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
max-clients 20
persist-key
persist-tun
status /etc/openvpn/log/openvpn-status.log
log /etc/openvpn/log/openvpn.log
verb 4
explicit-exit-notify 1
This has the effect of showing the DNS as 10.0.0.3 in Windows when doing an ipconfig /all command.
So the push actually works, but the function is not there..
If I comment out the entries for a few local servers on the remote network in my hosts file I can no longer ping them by name. By IP address is OK but not by name.
So my problem is not only to get DNS working in a split tunnel configuration, it does not work even in the full server configuration when adding the push commands as described in
the OpenVPN manual...