The JNDI Docs provide this information:
The DNS provider submits UDP queries using the following exponential backoff algorithm. The provider submits a query to a DNS server and waits for a response to arrive within a timeout period (1 second by default). If it receives no response within the timeout period, it queries the next server, and so on. If the provider receives no response from any server, it doubles the timeout period and repeats the process of submitting the query to each server, up to a maximum number of retries (4 by default).
So it depends on the number of DNS servers your configuration includes, but with the default initial value of one second it's 31 seconds per server if all are failing; 1 + 2 + 4 + 8 + 16 = 31. (initial try + 4 retries)