In case you want to route the traffic of your linux machine of a specific IP through a specific interface
ip routecommand should be used.
One example below asuming wlp2s0 is your wifi.
sudo ip route add 18.104.22.168/24 via 192.168.1.1 dev wlp2s0
This will lead all the traffic with target ip range 22.214.171.124/24 trough the interface of your wifi (assuming 192.168.1.1 is the wifi router).
I did not yet found a solution to route the traffic of a target “domain” through a specific interface. Happy for any input.