Page 1 of 1

No Name Resolution

Posted: Mon Jan 07, 2019 6:05 pm
by DBRDBR
I've installed OpenVPN on a Windows 10 device. I can access it across the internet via the VPN and RDP to it, however I have no name resolution available to any other device on the internal network, connections via IP work correctly.

My internal network is 192.168.1.x, routed by my home ADSL router that also provides DHCP.

Here is my server.conf:
port 19702
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key" # This file should be kept secret
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt

push "route 192.168.1.0 255.255.255.0"

;push "dhcp-option DNS 10.8.0.1"
;push "redirect-gateway def1"

client-to-client

tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
explicit-exit-notify 1

Here is my client.conf
client
dev tun
proto udp
remote myurl.net 19702
resolv-retry infinite
nobind
persist-key
persist-tun

<ca>
-----BEGIN CERTIFICATE-----
SNIP
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
SNIP
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
SNIP
-----END PRIVATE KEY-----
</key>

key-direction 1
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
SNIP
-----END OpenVPN Static key V1-----
</tls-auth>

remote-cert-tls server
cipher AES-256-CBC
verb 3

My guess is that I need to publish an IP for a DNS server to my VPN clients, but which DNS address should I push to my VPN clients? The IP of the VPN server or the DNS of my internal router?. Can anyone see what's wrong? Help!