I have four network interface in my machine, each network interface has it own public ip.
And I need to send http post/get request with server side. the server side domain is: fstream.binance.com
, it maps to a huge cluster, with many ip.
So, for each network interface in my side, i want to specify the mapping domain and ip.
For example,
Network interface 1's ip is 43.123.23.4, i want to map stream.binance.com to 43.123.23.22
Network interface 2's ip is 3.113.3.88, i want to map stream.binance.com to 3.113.2.22
....
I know /etc/hosts can bind domain and ip, but it’s global for all network interface.
So, Is there any methods can bind domain and ip in network interface layer?