Network hostname ping through VPN

I’m connecting to a VPN and able to ping many devices, but I want to ping them using their hostname instead.

If I were on a LAN, this would work just fine, but in this case the VPN makes things difficult.

Any way to add a route so it always references a particular ethernet adapter? or any other suggestions?

What I’ve found so far always references particular IPs but these can change for the VPN I’m using.

Thank you!