skipping not 'usefull' ip addresses of a dns lookup

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am testing a bit with containers and some of them I am giving multiple networks (just by adding interfaces on different networks). This way I can use the specific service on both networks. With some applications this seems to go fine. With others the 'wrong' ip address is being used, which results failed connection.

Example:
containter A has eth0 192.168.10.x/24 and eth1 192.168.122.x/24

When I ping this container from a vm only on the 192.168.10.x network. The 'first' ping fails (when 192.168.122.x is being resolved) the 2nd ping is ok because it resolves the 192.168.10.x ip


Question: is there some setting in linux that it automatically selects/prefers the 'routable' ip from a dns lookup?

Question: is there a standard for applications to handling multiple returned A records. So if eg. 3 records are returned, all are being tested until a valid connection has been found?








[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux