Driver should ignore NXDomain DNS errors for TXT record lookup

XMLWordPrintableJSON

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

      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:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: