[DRIVERS-201] Resolve names to all dns records (multiple dns A records) Created: 12/Sep/11  Updated: 29/Sep/17  Resolved: 12/Aug/16

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Rathi Gnanasekaran
Resolution: Won't Fix Votes: 2
Labels: connection, dns, needs-specs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DRIVERS-404 Implement Initial DNS Seedlist discov... Closed
is related to PYTHON-1108 multithread with multiple mongos issue Closed
is related to CSHARP-536 DNS round-robin support Closed
is related to RUBY-1102 Driver doesn't handle DNS round-robin... Closed
is related to PYTHON-1110 Document that multihomed and round ro... Closed

 Description   

This applies to all drivers, not just the Java one.

At present, to connect, a client must provide a driver with a connection string that specifies one or more members of a replica set. This is fragile, because if the string only specifies one host, and that host is down, then the client can't connect. At the other extreme, if the members of the replica set are in flux, or change, then the client must constantly have to use different connection strings.

Instead, it is suggested that we have the means to use a DNS lookup to find the members of a replica set. Instead of providing a list of hosts to the driver, provide a DNS name, for all of them. The driver does a DNS lookup, obtaining a set of A records, and starts trying those for the primary connection. This means that adding, moving, or removoing servers can still work if the number and absolute IP addresses change. The administrator need only adjust the DNS entries.



 Comments   
Comment by David Golden [ 29/Sep/17 ]

For future reference, this issue has been superseded by DRIVERS-404.

Comment by A. Jesse Jiryu Davis [ 02/Mar/15 ]

Needs a spec.

Generated at Thu Feb 08 08:20:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.