Check optional domain in data_connect and domain_connect