I am trying to assign a custom domain to OKTA preview application, unable to validate sub-domain to assign custom domain to the application.
We have Cloudflare serving as WAF for the traffic and UltraDNS in the front as DNS management.
To validate the TXT/CNAME, we have updated UDNS to directly point to Okta resource.
CNAME → login.mydomain.com → mydomain.customdomains.oktapreview.com
TXT → _oktaverification.login.mydomain.com → 6522xxxxxxxxxxxxxxxxxxxxxxx
The idea is to validate the domain and then switch the UDNS entry back to Cloudflare to serve the traffic.
I have checked propagation of sub-domain using MXToolBox and Google’s DIG tool, both are showing that the sub-domain is valid and pointing to correct resource for validateion.
Does sub-domain need both CNAME and TXT entries? Or just TXT is enough to validate?