[GODRIVER-2045] Cache DNS results Created: 11/Jun/21 Updated: 21/Dec/22 Resolved: 13/Oct/22 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Unknown |
| Reporter: | Kevin Albertson | Assignee: | Qingyang Hu |
| Resolution: | Done | Votes: | 3 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Quarter: | FY23Q3 | ||||
| Case: | (copied to CRM) | ||||
| Description |
|
Background
In the uncommon case that cgo is used, the system cache may be used. But otherwise the Go runtime explicitly does not cache DNS results. The proposal was rejected in https://github.com/golang/go/issues/24796.
Scope Determine a caching policy add support for caching DNS results. Consider if this could negatively impact existing users if we change the default behavior (if so, consider making this opt-in). |
| Comments |
| Comment by Githook User [ 15/Oct/22 ] |
|
Author: {'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}Message:
|
| Comment by Qingyang Hu [ 13/Oct/22 ] |
|
Proposed an example of a custom dialer with basic caching at https://github.com/mongodb/mongo-go-driver/blob/master/examples/example_customdns_test.go |
| Comment by Githook User [ 13/Oct/22 ] |
|
Author: {'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}Message: Propose an example of custom dialer with DNS cache. |