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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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