Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-20-2006, 10:18 AM   #1
Registered: Jun 2003
Location: France
Distribution: slackware 11.0
Posts: 80

Rep: Reputation: 15
DNS & VPN => headache

I have a problem using DNS and OpenVPN

I have one local DNS server (

and a VPN connection on my desktop computer

there is also a DNS srever for the VPN (

then I tried to put this in my resolv.conf file:

search localdomain vpndomain

The problem is: when querying a name the first dns (the local one) reply with a negative response and then reoslution stops :-(

Is there a way to change the resolution behavior so that resolution try the other nameservers not only if the query times out but also when a negative reply is received.
Old 02-20-2006, 08:03 PM   #2
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I know nothing about openvpn. Our company uses Cisco VPN client on XP. With Cisco VPN, they implement a feature called "split-dns" that addresses the very problem you are having.

One solution that might address your problem is to install Bind/DNS locally on your desktop that you are creating the openvpn VPN tunnel on and then configure it to forward all requests for vpndomain to All other DNS requests could either be resolved by the local DNS server (root zone is loaded) or forwarded to Obviously, your resolv.conf would have to point to for this to work.

Might be worth a try at least!
Old 02-21-2006, 08:26 AM   #3
Registered: Jun 2003
Location: France
Distribution: slackware 11.0
Posts: 80

Original Poster
Rep: Reputation: 15
Ok thanks for your reply.

I've solved the problem by adding my local DNS to the VPN.

With some modification to named.conf (setting the local DNS as a slave for our vpn domain so that it forwards all requests concerning the vpn to the right DNS) I was able to resolve names on the VPN

Now the problem was to make samba browsing work which seems to be difficult (and maybe not possible) because we can't broadcast over the vpn (routed openvpn)).

Anyway I think we'll go for NFS sharing (I've noticed some speed differences and NFS seems to be faster )

Ho and then any links to some open source or freeware windows NFS tools? (I've tried omninfs from M$ but this is not only for NFS and I'd prefer use a lightweight tool since some of the windows computers are olds and slow )


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS headache mraray Programming 3 01-03-2006 04:27 AM
DNS headache mdarby Slackware 1 11-04-2005 10:34 PM
VPN conectivity headache jdlcomputers Linux - Networking 5 01-01-2005 02:52 PM
VPN routing /DNS issue cyph3r7 Linux - Networking 1 05-06-2004 10:19 AM
SendMail Headache ! (& sleepless nights as well ;-)) MartijnBeekhuis Linux - Newbie 1 03-22-2004 12:56 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration