We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2856ca1 commit e9833b3Copy full SHA for e9833b3
driver-core/src/main/com/mongodb/internal/dns/DefaultDnsResolver.java
@@ -20,6 +20,7 @@
20
import com.mongodb.MongoConfigurationException;
21
22
import javax.naming.Context;
23
+import javax.naming.NameNotFoundException;
24
import javax.naming.NamingEnumeration;
25
import javax.naming.NamingException;
26
import javax.naming.directory.Attribute;
@@ -128,6 +129,8 @@ public String resolveAdditionalQueryParametersFromTxtRecords(final String host)
128
129
}
130
131
132
+ } catch (NameNotFoundException e) {
133
+ // ignore NXDomain error (error code 3, "Non-Existent Domain)
134
} catch (NamingException e) {
135
throw new MongoConfigurationException("Unable to look up TXT record for host " + host, e);
136
} finally {
0 commit comments