I need to make it so that two hostnames use a specific network interface. That is, so that any connection from my computer to those two hostnames go through that specified network interface. Windows 10.
Somebody told me to use the "route" command, but it wants me to enter an IP address instead of hostname.
When I ping the hostnames in question, they return different IP addresses all the time, or gives different ones to different people. I thus cannot rely on whatever it tells me at any given time.
How do I make it so that any request to xyz.example.com and zyx.example.com always use a given network interface on my machine?