Add is_ip_or_domain_list; change default ip_type

Also fix is_valid_domain (again)