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?
172.16.66.254
192.168.0.6
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
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