LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-30-2008, 05:22 AM   #1
Sputnikc
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian stable/testing/unstable
Posts: 32

Rep: Reputation: 15
DNS - resolvconf with vpn problem


I'll try to explain my situation.

I'm at my home network with a router (192.168.0.1) using iptables and dnsmasq running debian stable
My clients 192.168.0.0/24 are running debian testing.

On my client i have running eth2 (lan-device) which uses the router as dns and a tun0 device wich is a openvpn connection to my work.
I use resolvconf to add the dns and domain of my work to /etc/resolv.conf .

Now when i have the tun0 device not active (vpn is not up) i can ping internally to "router" but when i have the vpn up (tun0) and the dns addes to my /etc/resolv.conf by resolvconf, the it tries to resolv my "router" by the dns of the vpn connection.

When i change the interface-order setting of resolvconf i can manage to ping locally but then the VPN dns isn't working.
Is there any way to get this right using my setup?
so that i can use local dns fine (hostnames) and dns for work fine without having to switch off and on the vpn all the times (very usefull for my imap mail over vpn.)

Thanks,
 
Old 04-25-2018, 05:48 AM   #2
bernd.wechner
LQ Newbie
 
Registered: Jun 2016
Posts: 12

Rep: Reputation: Disabled
Re: DNS - resolvconf with vpn problem

Sputnikc,

10 years on, I see no reply, and I find myself with exactly this same issue. I wonder if you ever worked it out. I am thinking there must be a resolvconf.conf setup that stipulates what we want here, that .lan always gets resolved on the LAN DNS, that .whatever gets resolved through the VPN defined DNS and that names with no dots depend on the config somehow ....

I can't really follow the man pages so am searching on-line for help and only found this for now. Not unusual to have a problem and only find others with the same problem but no solution ;-).

Regards,

Bernd
 
  


Reply



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 & VPN => headache m0rg Linux - Networking 2 02-21-2006 07:26 AM
Connect to vpn server, no DNS specified fatrandy13 Linux - Software 2 12-19-2005 08:08 PM
resolvconf bug? mcd Linux - Networking 2 07-25-2005 09:54 PM
Advice on setting up VPN/LAN DNS rwalkerphl Linux - Networking 2 10-03-2004 12:32 PM
VPN routing /DNS issue cyph3r7 Linux - Networking 1 05-06-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:43 PM.

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
Open Source Consulting | Domain Registration