[CDRIVER-2275] Use `res_search` in `_mongoc_get_srv_query`, instead of `res_query` Created: 11/Sep/17  Updated: 28/Oct/23  Resolved: 26/Oct/17

Status: Closed
Project: C Driver
Component/s: libmongoc, network
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Improvement Priority: Major - P3
Reporter: ADAM Martin (Inactive) Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

Clients SHOULD respect the default domain and current domain when looking up the SRV record. For example with libresolv, clients SHOULD call res_search, not res_query.



 Comments   
Comment by Githook User [ 28/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2275 use res_nsearch, not res_nquery

res_nsearch respects the default domain and current domain when looking
up the SRV record, instead of requiring fully-qualified domain as
res_nquery does.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/2b283ca5ae73acaa6831d03fdac86a00953620e8

Generated at Wed Feb 07 21:14:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.