THE PROBLEM
I have multiple internet connections on a linux machine, I want each internet connection to use a specific DNS nameserver. /etc/resolv.conf
is a problem, since it uses a global name server for all open internet connections.
Please note that the connections are all open and being used at the same time.
WHAT I NEED?
A way to say to linux the following:
Use DNS Nameserver A for internet connection 1
Use DNS Nameserver B for internet connection 2
Use DNS Nameserver C for internet connection 3
The problem is that /etc/resolv.conf
uses the same nameserver for all conenections.
The exact requirement above I have to stick to.
Since the application I'm working on measure's ISP performance and DNS response time.
Using OpenDNS wont do me any good.
As for DHCP, I'm already obtaining DNS automatically from the ISP, but only the last DNS servers are being used in resolve.conf overwriting the previous name servers.
Need help.