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

mongodb+srv not following CNAME records

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

      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"
      

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

              Created:
              Updated:
              Resolved: