4
I can add DNS servers to resolv.conf and that works fine.
But is it possible for me to call a different DNS server based on the domain trying to be resolved?
For example:
use 10.0.0.1 for everything
except use 10.0.0.2 for "mycompany.net"
Edit: adding more detail.
I am trying to VPN into my company's server. Everything almost works great following this guide: http://www.cyberciti.biz/tips/howto-configure-ubuntu-fedora-linux-pptp-client.html
DNS resolution doesn't work for me. The article suggests modifying resolv.conf
with the DNS servers.
When I have the first nameserver in the list as my own router, resolution of names on the VPN doesn't work. When I have the first nameserver as my company's router, resolution of names on the Internet doesn't work.
Sorry, I didn't word it very well. Let me add more details to the question. – user3875 – 2009-09-09T23:39:39.163
That works! Thank you. Now that I added more detail, is there a simpler way? I'm just curious because this works great. – user3875 – 2009-09-09T23:44:08.843
If your company's DNS server was configured to allow you do perform recursive queries when accessing via the VPN, then you would not need the local server yourself. You could also try the
hosts
file approach but that can be a hassle to maintain so isn't recommended. – David Spillett – 2009-09-10T19:05:12.520