[PATCH 01/12] domain_conf: move duplicate check functions to domain_validate.c