undefined checkes for resolve_ip and validate_resolvable