Hi,
I've recently setup an openvpn to my home server so i can access my network from wherever. Everything works great except the hostname resolve, i'm not an experience network admin so i'm wondering what stuff i need in order to resolve internal hostnames if i don't have an internal dns server.
I want to mention i do not have an internal domain controller either, i think my home router is doing the wins stuff automatically or perhaps its netbios helper service that takes care of the hostname resolve?
Network looks like:
1.1.1.1 <- router with incoming internet
1.1.1.2 <- main computer
1.1.1.3 <- server (this is where openvpn server is installed)
10.8.0.1/10 vpn scope
i've enabled routing between the networks in the router.
This is my vpn configuration:
server side:
## server.ovpn ##
port 17421
proto udp
dev tun
ca ca.crt
cert corevpn.crt
key corevpn.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 1.1.1.0 255.255.255.0"
push "dhcp-option WINS 1.1.1.3"
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DOMAIN mydomain.com.local"
keepalive 10 120
comp-lzo
max-clients 2
persist-key
persist-tun
status openvpn-status.log
verb 3
client side
## vpnaccess.ovpn ##
client
proto udp
dev tun
remote mydomain.com 17421
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert vpnaccess.crt
key vpnaccess.key
comp-lzo
verb 3
Any ideas? I really don't want to use hosts file manipulation, i would like to learn a little more how this works 🙂
Thanks!