Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Started
Created by Guest
Created on Apr 14, 2020

Allow custom service names with mongodb+srv URI scheme

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.
  • Guest
    Jun 26, 2023
    This idea was implemented in https://jira.mongodb.org/browse/DRIVERS-521