I have 2 machines that switch back and forth between networks. One network has both configured in the DNS table, so that they can reach each other on that one. However, on the other network, they don't, but they will have static IP addresses there.
What I would like to do is configure both machines to FIRST query the DNS for an IP address when attempting to resolve a hostname, and, if that fails, THEN go to a static hosts file (i.e. /etc/hosts
) to find an IP address for it. Can this be done, both on Win7 and Ubuntu?