LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-15-2009, 07:48 AM   #1
nusch
LQ Newbie
 
Registered: Feb 2009
Posts: 11

Rep: Reputation: 0
Company DNS priority and VPN


I'm connecting to my home Wifi network with KWifimanager and with /etc/init.d/openvpn script to connect my company VPN.

Using resolvconf it's generates such /etc/resolv.conf
Code:
root@novopad:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.3.1 #company dns server (in vpn)
nameserver dns1.myisp.com
nameserver dns2.myisp.com
search company.vpn
It works, I can ping any host.company.vpn but all my DNS requests go through company server, what I don't like from privacy reason and it's also very slow.

If I change cat /etc/resolvconf/interface-order the file looks like
Code:
root@novopad:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver dns1.myisp.com
nameserver dns2.myisp.com
nameserver 192.168.3.1
search company.vpn
But then neither ping to company_host nor company_host.company.vpn works. Is there any solution for the problem?

EDIT: I know that I can do something with local BIND, but it's not so lightweight and needs configuring every new network what I don't like.

Last edited by nusch; 02-15-2009 at 07:50 AM.
 
Old 02-16-2009, 12:57 AM   #2
ayeomans
LQ Newbie
 
Registered: Jan 2006
Location: Tring, UK
Distribution: Ubuntu, Fedora, Xandros-EEE
Posts: 10

Rep: Reputation: 1
If you only need a few DNS names in company.vpn domain, you could manually add them into /etc/hosts.config. Then use the dns1.myisp.com nameservers for everything else.
 
Old 02-16-2009, 03:37 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You can also setup a local caching nameserver that has global forwarding to your ISP's nameservers, but specific forwarding for your company's domain that sends those requests to your company's DNS server. You would then point your /etc/resolv.conf to your own local nameserver.
 
  


Reply

Tags
bind, dns, openvpn, priority


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 - resolvconf with vpn problem Sputnikc Debian 0 10-30-2008 05:22 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM
DNS & VPN => headache m0rg Linux - Networking 2 02-21-2006 07:26 AM
VPN to company over Wireless home network rgeelen Linux - Wireless Networking 1 05-20-2004 10:08 AM
Company Infrastructure with DNS and Mail server yongbeng Linux - General 2 05-21-2003 11:22 AM


All times are GMT -5. The time now is 01:20 PM.

Main Menu
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