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
dig -b <localIP> <VPNHostname>