be_reachable with support for hostnames