-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support DNS seedlist / mongodb+srv://
#112
Comments
This sounds like a cool addition and should be relatively easy! We don't have a 3.6 testing environment built up yet but it's in the works, I'll leave this ticket open in the meantime. Saying that, we'll happily accept a PR for this! Dom |
I forked but was not able to run unit tests b/c of the error below.
Here are the changes to support dns seedlist :
|
This would make the MGO driver compatible with MongoDB Atlas |
Any news? |
It would really be great to see this implemented |
I spent some time today porting the logic from the new, official Mongo driver back to mgo. We are running off of master, so I started my branch from there as it makes it easier for us to pick up without grabbing new features off of the development branch. @maitesin I know that the contributions should be off of release. Before I send a PR over to you, does it have to be against development branch? While I know we are running against master, I don't know what most people are using. It is also unclear if/when a new release will be cut. |
It's 2021, any updates on this issue? |
Well, there now is an official Driver from MongoDB which also covers this use case. |
I have switched to the official mongodb-go-driver. Here are some examples to help your transition, https://github.com/simagix/mongo-go-examples/tree/master/examples. |
@ all: I wish you a Happy New Year 2022! Any news about it? |
Mongo 3.6 adds support for using DNS
SRV
records to configure the initial set of ReplicaSet members instead of providing them in the connection string itself. See: https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format and https://github.com/mongodb/specifications/blob/master/source/initial-dns-seedlist-discovery/initial-dns-seedlist-discovery.rstIt would be great to see support for this in mgo!
The text was updated successfully, but these errors were encountered: