your example still looks weird - please double check
I don’t really get the point why add each domain twice? likely you try to workaround escaping problems but maybe you brake the whole integration this way. First NC instance always work so this might work occasionally..
Regarding multi-domain setup please look at
and also review CODE logs - often they clearly point out the problem.