<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
0D5KZ0000106yj80AAOkta Identity EngineAccess GatewayAnswered2025-06-30T16:05:42.000Z2025-06-24T07:41:13.000Z2025-06-30T16:05:42.000Z

dhanushrajn.75119 (Customer) asked a question.

Intermittent dns error: failed to lookup address information When Fetching JWKS for ID Token Verification

Hello Okta Support,

We are intermittently encountering the following error while using Okta Verify with ID token validation in our backend service:

 

VerifierIssue: error sending request for url (https://xxxxxx.okta.com/oauth2/default/v1/keys)

 

Caused by:

0: client error (Connect)

1: dns error: failed to lookup address information: Name or service not known

2: failed to lookup address information: Name or service not known

This issue doesn't occur consistently — most of the time the request to fetch the JWKS from the endpoint works correctly, but occasionally it fails with the above DNS resolution error.

Additional context:

  • We are using the id_token from Okta and verifying it on our backend.
  • The endpoint being hit is https://xxxxxx.okta.com/oauth2/default/v1/keys.
  • Our DNS and internet connectivity appear to be stable at the time of the error.
  • The request is sent using a Rust-based backend service, which uses standard libraries for HTTP and DNS resolution.

Questions:

Is there any known intermittent issue or maintenance affecting the okta.com DNS resolution?

  1. Is there a more stable or recommended way to cache the keys from the JWKS endpoint to reduce the frequency of such lookups?
  2. Are there recommended timeout and retry configurations for this endpoint?

Looking forward to your guidance on resolving or mitigating this issue.

Thank you.


  • User17157611498146715886 (Customer Support Online Community and Social Care)

    Hello @dhanushrajn.75119 (Customer)​ , thank you for contacting Okta Community.

     

    This issue seems too complex to be addressed here. I recommend that you open a Support ticket (Customer Support Account ID number required) so one of our engineers can analyze it and provide in-depth troubleshooting. You could also provide more details in a ticket that shouldn’t be given here, as this is a public space.

    Please note that opening a support ticket is a feature available only to paid accounts. If you do not have a paid account, but are interested in upgrading, you can contact our Sales team

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    This month's AMA topic: Okta Device Access. Ask away today.

    Expand Post
    Selected as Best
  • User17157611498146715886 (Customer Support Online Community and Social Care)

    Hello @dhanushrajn.75119 (Customer)​ , thank you for contacting Okta Community.

     

    This issue seems too complex to be addressed here. I recommend that you open a Support ticket (Customer Support Account ID number required) so one of our engineers can analyze it and provide in-depth troubleshooting. You could also provide more details in a ticket that shouldn’t be given here, as this is a public space.

    Please note that opening a support ticket is a feature available only to paid accounts. If you do not have a paid account, but are interested in upgrading, you can contact our Sales team

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    This month's AMA topic: Okta Device Access. Ask away today.

    Expand Post
    Selected as Best
This question is closed.
Loading
Intermittent dns error: failed to lookup address information When Fetching JWKS for ID Token Verification