Reset $domain_name_index , if $domain_name_index becomes larger than @domains.