Hi,
I have a problem with my openvpn client on android and windows 10. The configuration files are the same on these platforms:
client
dev tun
proto udp
remote XXXX.duckdns.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 4
mute 20
ca ca.crt
cert XXXX.crt
key XXXX.key
tls-auth ta.key 1
After connect to my VPN on XXXX.duckdns.org from Android I can open my server using its ip address 192.168.0.3 but can't open it by dns XXXX.duckdns.org and I think it is correct.
After connect to my VPN on XXXX.duckdns.org from Windows 10 I can open my server using its ip address 192.168.0.3 and open it by dns XXXX.duckdns.org and I get the same page. Why? I think after connect to vpn i could use XXXX.duckdns.org.
Why there is a difference in Android and Windows 10? How to fix this issue?
Config server:
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.0.3 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log
status-version 2
log /var/log/openvpn.log
verb 2