When the Domain and DNS are set to "use host settings" all work fine.
When a specific domain name is used and a local IP DNS is set, the attach error is returned and the CT is not created.
This error does not seem correlated to the DNS settings during the container creation. In which setting does the error occur (cluster, how many nodes, self-signed certificates in place, are all nodes on the same PVE version)?