Use local network while VPN'd into another network

Tags:

Answer: 1

9 hours ago

So I'm at work and I VPN into a remote network. Both networks have their own DNS servers that have hostnames that resolve to internal IP's. I've set it up in network manager so I can ping internal IP's on both networks (including the DNS servers) but I can't get DNS lookup on both networks simultaneously.

$ cat /etc/resolv.conf
# Generated by NetworkManager
search company.com
nameserver 172.16.66.254
nameserver 192.168.0.6
nameserver 192.168.0.7

I'm using Ubuntu 11.04 64-bit desktop.

Where 172.16.66.254 is the VPN DNS server and 192.168.0.6 and 7 are the local DNS servers. Will I need to run some sort of local dns server that pulls from both?

Edit:

dig -b 192.168.0.51 mylocalserver

; <<>> DiG 9.7.3 <<>> -b 192.168.0.51 mylocalserver
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 42426
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mylocalserver.             IN  A

;; Query time: 0 msec
;; SERVER: 192.168.0.6#53(192.168.0.6)
;; WHEN: Thu Feb 23 14:01:40 2012
;; MSG SIZE  rcvd: 23
Added by: Hosea Koepp

Answer: 2

12 hours ago

This comment may answer the question:

Indeed, so you've boiled your question down to: How can I use multiple DNS servers for queries? Turns out that isn't really possible (that I know of). So the alternate question is: How can I get one of the DNS servers to not return Not Found? The answer to that is to have the DNS server forward requests to other DNS servers before replying with Not Found.

– Huckle Feb 24 '12 at 22:59

Added by: Lavon Wyman

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9