There are two network interfaces on my Macbook: an ethernet LAN and Wi-Fi, which are both DHCP-configured (albeit separately).
I only need to access a limited number of hosts through my Ethernet network, and want every other request to be routed through Wi-Fi. Those 'Ethernet' hosts can mostly be recognised by their domain mask which is *.foobar.com, but there are also a few exception which domain is different (but they can be identified by their exact IPs).
What would be the best way for me to organise it? I am thinking giving my Wi-Fi the top priority (by dragging it to the top in 'System Settings / Network' list), and then creating a routing rule like this:
route add -host 192.168.10.13 -interface en0
Is that a right approach? If so, what is the equivalent command that I can use to define
en0 as a default route by domain mask (*.foobar.com) rather than by exact IP?