FIX: get_hostnames keeps domain names