-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Component/s: Initial DNS Seedlist Discovery
-
Needed
-
(copied to CRM)
We are using DCOS (marathon/mesos) to manage our services. DCOS generates SRV records for our mongos instances under a record that looks like
_mongos-mongodb._tcp.marathon.mesos
However, there's currently no way for me to use this because when I provide a connection url like
mongodb+srv://_mongos-mongodb._tcp.marathon.mesos
the drivers prepend "mongodb._tcp" to the provided url. It's not clear why it's required that the host _must start with "_mongodb._tcp". Why not let the user specify the actual DNS entry to query?
I believe the same issue will exist for multiple orchestration frameworks such as Consul/Nomad and Kubernetes.
Drivers should sync their URI options and seedlist discovery spec tests to this commit. Drivers should accept a new URI option srvServiceName that overrides the default "mongodb" service name for SRV lookup in both discovery and polling.
- is duplicated by
-
GODRIVER-777 Does the Go Driver cache DNS and if so how long?
- Closed
- related to
-
DRIVERS-1946 Add prose test for SRV polling with a custom service name
- Implementing
- split to
-
CXX-2312 Allow custom service names with srvServiceName URI option
- Backlog
-
RUST-911 Allow custom service names with srvServiceName URI option
- In Code Review
-
CDRIVER-4086 Allow custom service names with srvServiceName URI option
- Closed
-
CSHARP-3745 Allow custom service names with srvServiceName URI option
- Closed
-
GODRIVER-2086 Allow custom service names with srvServiceName URI option
- Closed
-
JAVA-4239 Allow custom service names with srvServiceName URI option
- Closed
-
MOTOR-778 Allow custom service names with srvServiceName URI option
- Closed
-
NODE-3450 Allow custom service names with srvServiceName URI option
- Closed
-
PHPC-1900 Allow custom service names with srvServiceName URI option
- Closed
-
PYTHON-2823 Allow custom service names with srvServiceName URI option
- Closed
-
RUBY-2737 Allow custom service names with srvServiceName URI option
- Closed