Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2556

mongodb+srv not following CNAME records

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libmongoc
    • Labels:
      None

      Description

      When looking up the TXT record, mongo-c-driver does not follow CNAME records. Is this intentional or overlooked? For example I have the following CNAME:

      CNAME mongo.opencpu.org -> cluster0-84vdt.mongodb.net
      

      However connecting to mongodb+srv://cluster0-84vdt.mongodb.net/test does not work. Manually looking up the TXT record with dig or host works fine:

      host -t txt mongo.opencpu.org
      mongo.opencpu.org is an alias for cluster0-84vdt.mongodb.net.
      cluster0-84vdt.mongodb.net descriptive text "authSource=admin&replicaSet=Cluster0-shard-0"
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Jeroenooms Jeroen Ooms [X] (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: