<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Find and Change the CNAME Value in DNS Records
Okta Classic Engine
Okta Identity Engine
Custom URL Domains
Overview

A custom domain is configured for the organization. After renaming the Okta subdomain, the CNAME value in the Domain Name System (DNS) records on the domain registrar may require an update because a mismatched CNAME value may cause issues with the Okta-managed custom domain certificate renewal.

Applies To
  • Okta Subdomain
  • CNAME
  • Administration
Cause

When the Okta subdomain is renamed, the CNAME value must be updated in the DNS records. The certificate renewal fails because the new CNAME value is used to search the DNS records in the domain registrar.

Solution

Update the CNAME value in the DNS records whenever the Okta subdomain is renamed. This change ensures the certificate renews successfully.

    Ensure Use of the Correct CNAME Value

    NOTE: okta.domains.read scope is required for these calls.

    1. Get all domains using the call: https://{DomainName}/api/v1/domains.
    2. From the response body, copy the ID of the relevant domain.
    3. Add the domain ID to the call: https://{DomainName}/api/v1/domains/{domainId}.
    4. From the response body, copy the value in the "values" key under the CNAME record type:

    Example

       5. This CNAME value must be added to the domain registrar DNS that is used, so the CNAME values match.

    Custom domains

     

    NOTE: If the CNAME has not been changed after the subdomain name change and the certificate has expired, then this update of CNAME in the DNS records will not renew the expired Okta-issued custom domain certificate. The custom domain must be deleted in Okta and added again.

     

    Related References

    Loading
    Find and Change the CNAME Value in DNS Records