AIM Given DNS Server unavailable on provider startup, provider failed resolve vault address once it available again
93
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:56 PM
Symptom
On Distributed-Vault mode, in debug mode in the APPTrace.log file you see the following log on CP startup:
First DNS Query got failed. Avoid any consecutive DNS query for 20 seconds.
The following errors may also appear:
On Linux: "Error has occured when trying to resolve DNS SRV using resQuery, Error code returned = %d for address =%s"
On Windows:
"Error has occurred when trying to resolve DNS SRV %s , error code returned = %d"
First DNS Query got failed. Avoid any consecutive DNS query for 20 seconds.
The following errors may also appear:
On Linux: "Error has occured when trying to resolve DNS SRV using resQuery, Error code returned = %d for address =%s"
On Windows:
"Error has occurred when trying to resolve DNS SRV %s , error code returned = %d"
Environment
10.5;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Credential Provider CP
Cause
The DNS server is not reachable
Resolution
In case the DNS Server is unreachable for the Credential Provider on startup, the credential provider keeps an artificial address and will get a timeout. As a result CP will avoid from any further DNS queries on startup for a limited time. This gives enough time for the credential provider service to start up as expected. Later on, after the DNS server becomes available, the provider will reach out to the DNS server and resolve the Vault address.
Additional Information
Details
SYMPTOM:
On Distributed-Vault mode, in debug mode in the APPTrace.log file you see the following log on CP startup:
First DNS Query got failed. Avoid any consecutive DNS query for 20 seconds.
The following errors may also appear:
On Linux: "Error has occured when trying to resolve DNS SRV using resQuery, Error code returned = %d for address =%s"
On Windows: "Error has occurred when trying to resolve DNS SRV %s , error code returned = %d"
PROBLEM:
The DNS server is not reachable
SOLUTION:
In case the DNS Server is unreachable for the Credential Provider on startup, the credential provider keeps an artificial address and will get a timeout. As a result CP will avoid from any further DNS queries on startup for a limited time. This gives enough time for the credential provider service to start up as expected. Later on, after the DNS server becomes available, the provider will reach out to the DNS server and resolve the Vault address.