Skip to content

Commit 6191943

Browse files
committed
Document DNS issues with Go 1.11+ and mongodb+srv
GODRIVER-896 GODRIVER-950 Change-Id: I69ac5758f1300cecbe8b20714afa93eaa84420a3
1 parent 42728fe commit 6191943

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mongo/doc.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,13 @@
6060
//
6161
// Additional examples can be found under the examples directory in the driver's repository and
6262
// on the MongoDB website.
63+
//
64+
// Potential DNS Issues
65+
//
66+
// Building with Go 1.11+ and using connection strings with the "mongodb+srv"[1] scheme is
67+
// incompatible with some DNS servers in the wild due to the change introduced in
68+
// https://github.com/golang/go/issues/10622. If you receive an error with the message "cannot
69+
// unmarshal DNS message" while running an operation, we suggest you use a different DNS server.
70+
//
71+
// [1] See https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format
6372
package mongo

0 commit comments

Comments
 (0)