Different networks, DNS-Server does not work

How to customize and extend your OpenVPN installation.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Thu Dec 09, 2010 8:45 am

Different networks, DNS-Server does not work

Post by Kampfzivi » Thu Dec 09, 2010 9:21 am


i already searched the web, but i didn't found the anser (or i didn't recognized the right answer... ;-) )

This is my situation:
Win 2003 Server R2,
computername: server
AD-, DHCP- and DNS-Server are running

different OS,
different networks, in this special case:

My Problem:
on the server is a database runnig.
The clients are connecting to the database by servers name, and not to an IP.
So it is required that the client use the VPN server as DNS-Server to get the servers IP when requesting servers name.
I hope, i could explain my problem understandable.

So how can I configure the server that the clients resolve the IP when e.g. pining "server"?

actual VPN-Config Server:

port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
max-clients 2

I hope you can help me...
Thanks in advance!

Best regards

Bene aka Kampfzivi

User avatar
Forum Team
Posts: 729
Joined: Fri Aug 29, 2008 5:42 pm

Re: Different networks, DNS-Server does not work

Post by krzee » Mon Jan 10, 2011 9:29 pm

just put the entry in the client's host file... unless this needs to be scalable it should work fine

Post Reply