This topic describes the cause of and the solution to the NeedVerifyDomainOwnership: Please verify domain ownership by CreateCnameToken and try again. error when you map a custom domain name.
Cause: The ownership of your domain name is not verified.
Solution: Verify the ownership of your domain name by performing the following steps.
Call CreateCnameToken to create the CNAME token required for domain name ownership verification. When you create a token for a wildcard base domain name on an Agentic Bucket, specify
wildcard=true.Add a TXT record at your domain name service provider.
For example, to add a TXT record for the custom domain name
example.com, set the record type to TXT, the host record to _dnsauth.example, and the record value to the CNAME token returned by Step 1. Keep the default settings for the other parameters. For more information, see Manually add a CNAME record.NoteThe TXT record that you add takes several minutes to take effect.
Call PutCname to map the custom domain name.