LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-20-2006, 10:18 AM   #1
m0rg
Member
 
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 (192.168.0.2)

and a VPN connection on my desktop computer

there is also a DNS srever for the VPN (10.8.0.1)

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

nameserver 192.168.0.2
nameserver 10.8.0.1
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
scowles
Member
 
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 10.8.0.1. All other DNS requests could either be resolved by the local DNS server (root zone is loaded) or forwarded to 192.168.0.2. Obviously, your resolv.conf would have to point to 127.0.0.1 for this to work.

Might be worth a try at least!
 
Old 02-21-2006, 08:26 AM   #3
m0rg
Member
 
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 )
 
  


Reply


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


All times are GMT -5. The time now is 05:14 AM.

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