Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12574

Clarify required host/domain format for mongodb+srv connection strings

    • 0.1

      Description

      A user in mongodb/mongo-php-driver#968 encountered an exception attempting to use a hostname with less than two dots (e.g. "mongo" instead of "mongo.example.com") in conjunction with a mongodb+srv connection string scheme.

      I was attempting to dig up documentation about the required format of the SRV host/domain string but was unable to find anything across the following:

      AFAIK, the only place we explicitly mention this requirement is in the driver specification.

      Is this worth addressing in the MongoDB manual around existing SRV examples?

      Scope of changes

      • Update section to specify that the hostname *must* be <hostname>.<domain>.<TLD>. You cannot specify the hostname alone.
      • Update section to specify that the individual SRV records must be in _mongodb.tcp.<hostname>.<domainname>.<TLD> format
      • Backport to 3.6

       

            Assignee:
            joseph.dougherty@mongodb.com Joseph Dougherty
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 24 weeks, 2 days ago