better hostname comparator