Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4018

Driver should ignore NXDomain DNS errors for TXT record lookup

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.5.1
    • Affects Version/s: None
    • Component/s: Configuration
    • None
    • Minor Change
    • Needed

      When presented with a mongodb+srv-schemed connection string, the driver looks up in DNS any TXT records associated with the host. If none are found, the driver correctly does not throw an exception. However, if the DNS server returns an NXDomain error (error code 3, "Non-Existent Domain), JNDI throws a java.naming.NameNotFoundException, the driver catches it, and throws a com.mongodb.MongoConfigurationException.

      The expected behavior is that NXDomain errors are also ignored.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: