The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to: Linux BOX in Windows Domain (w/out joining the domain) regmaster Windows & DOS: Issues & Discussions 2 04-28-2009 08:30 AM
Logical Domains for CoolThreads Servers - Guest domain boot error iBot Solaris BigAdmin RSS 0 04-21-2009 07:15 PM
cut subsrting from string depending on pattern Muslem_it Shell Programming and Scripting 5 08-04-2008 07:45 AM
split file depending on content Chaitrali Shell Programming and Scripting 4 11-14-2007 09:15 AM
Do commands depending on the comparision mr_bold UNIX for Dummies Questions & Answers 4 04-12-2007 06:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2009
martincastell martincastell is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
Select DNS Servers depending on the domain

Hello,

I'm using CentOS 5.3, and I connect to a VPN in order to work. The problem is that I'm constantly accessing things on the local network and the remote network. But once I'm connected to the VPN I can't access local addresses by name, I have to use the ip-address.

What I'd like is to configure things so that all of the things that are on my domain use my local DNS, and the rest of the stuff use the VPN DNS.

Is this possible? Regards
  #2 (permalink)  
Old 05-08-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
It is a long time since I did this but you need to point your CentOS machine at your local DNS servers ensure your CentOS machine know what domain it belongs to (both in /etc/resolv.conf) and then get your DNS server to use the VPN DNS when it gets DNS requests for domains that it does not know about. I trust someone else will tell us how to do the latter.
  #3 (permalink)  
Old 05-13-2009
shico1973 shico1973 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 2
while you are VPN connected ; can you try to resolve anything using you local DNS ? ; can you even ping your local DNS ?
i have a feeling that your VPN connection should not filter out any communication with local IP network ? if so then test this criteria by trying to do a DNS query while VPN connected
some thing like
#nslookup
then set the server to your local server
>server my.dns.ip.address
then try to resolve any local DNS name

if the request times out this means that your resolver [DNS client] could not communicate with your DNS server ! ; if not then this means that you will need to add the local DNS to the list of valid DNS servers that is used while you are VPN connected [this is related with the configuration acquisition that is made upon VPN connection ]

regards

Last edited by shico1973; 05-13-2009 at 03:34 PM.. Reason: correction
  #4 (permalink)  
Old 05-15-2009
martincastell martincastell is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
Hello,

When I'm VPN connected and I try to access anything inside the local network, it gets resolved to an error page from Yahoo.

I did the nslookup:
Code:
$ nslookup
> server my.dns.server
> local-computer-name
And it worked. So this should be a matter of setting the dns server on the resolv.conf file, which looks like this when I'm not vpn connected:
Code:
nameserver 172.x.x.x
And like this when I'm connected:
Code:
;;SNX;; - {
nameserver 10.x.x.x
nameserver 10.x.x.x
search corp.mycompany.com
;;SNX;; - }
; generated by /sbin/dhclient-script
nameserver 172.x.x.x
If I move my local nameserver up, everything gets resolved using my dns, and the other way around. That's why I was kind of asking if it's posible to decide wich one to use depending on the thing you want to access.


thanks and regards
  #5 (permalink)  
Old 05-15-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
You need to get you local DNS servers to pass on queries for domains that are not yours to a higher tier DNS server (e.g. the DNS server responsible for .com).
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0