The BSD route command has a feature that will show what route will be selected for a given host. For example:
/Users/mhaase $ route get google.com
route to: iad23s07-in-f8.1e100.net
destination: iad23s07-in-f8.1e100.net
gateway: 10.36.13.1
interface: en0
flags: <UP,GATEWAY,HOST,DONE,WASCLONED,IFSCOPE,IFREF>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
I occasionally find this useful if I am manually messing with routing tables to make sure that the routing rules are working as expected.
The GNU version of route does not have this same "get" subcommand. Is there some equivalent or alternative for GNU/Linux?