Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39008

SRV Records Incorrectly Require Same Domain

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 4.0.5, 4.1.1, 4.1.4
    • Fix Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Create a SRV record on a domain that points to entries in a different domain.

      Show
      Create a SRV record on a domain that points to entries in a different domain.

      Description

      When connecting to a domain via SRV record, each host in the SRV record is being checked to see if it is in the same domain as the SRV entry.

      Thus, if we have a SRV record that returns 3 hosts:

      _mongodb._tcp.example.org -> host1.domain.com, host2.domai.com, host3.otherdomain.com

       

      Mongo components return an error similar to: "Domain suffix from SRV record not matched input domain" or "Hostname host1.domain.com. is not within the domain example.org".

       

      Code that causes this is here: https://github.com/mongodb/mongo/blob/master/src/mongo/client/mongo_uri.cpp#L428-L432

      https://github.com/mongodb/mongo-tools/blob/master/common/connstring/connstring.go#L468-L488

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: