Support SRV records in MongoDB plugin connections

Description

MongoDB 3.6 introduced the concept of a seed list that is specified using DNS records, specifically SRV and TXT records. The use of SRV records eliminates the requirement for every client to pass in a complete set of state information for the cluster. Instead, a single SRV record identifies all the nodes associated with the cluster (and their port numbers) and an associated TXT record defines the options for the URI.

Without the SRV configuration the Client must list several nodes along with the ssl and replicaSet options when connecting. This allows a client to connect to a replica set even if one of the nodes that the client specifies is unavailable.

The Host field does not support SRV records. Parsing of Authentication Connection String field fails for mongodb+srv format in the URI.

Reference:

Note: Assignee can reach out to for more details.

Release Notes

None

Activity

Show:

Aakash NayakJanuary 13, 2025 at 10:56 AM

Please move it to 6.11.1 if this needs to be done in 6.11 GA

Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Priority

Created May 9, 2024 at 4:24 PM
Updated last month