Different networks, DNS-Server does not work

How to customize and extend your OpenVPN installation.
Post Reply
Kampfzivi
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

Hello,

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

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

Client:
different OS,
different networks, in this special case: 192.168.55.0

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 10.8.0.1 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
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
max-clients 2
persist-key
persist-tun


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

Best regards

Bene aka Kampfzivi

User avatar
krzee
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