summaryrefslogtreecommitdiff
path: root/src/resolv/async_resolv.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-30Add dns_resolver_timeout optionStephen Gallagher1-1/+5
We had a hard-coded timeout of five seconds for DNS lookups in the async resolver. This patch adds an option 'dns_resolver_timeout' to specify this value (Default: 5)
2010-04-30Support SRV servers in failoverJakub Hrozek1-5/+5
Adds a new failover API call fo_add_srv_server that allows the caller to specify a server that is later resolved into a list of specific servers using SRV requests. Also adds a new failover option that specifies how often should the servers resolved from SRV query considered valid until we need a refresh. The "real" servers to connect to are returned to the user as usual, using the fo_resolve_service_{send,recv} calls. Make SRV resolution work with c-ares 1.6
2010-04-30Sort SRV replies according to RFC 2782Jakub Hrozek1-0/+244
RFC 2782 defines a way to sort replies to a SRV query. In short, the algorithm sorts all replies by priority and then does a weight-based selection for every priority level. For details, please see the sections "Usage rules" for overview of the algorithm and section "The 'Weight' field" for description on the weight selection.
2010-04-26Do not mark a request as failed twiceJakub Hrozek1-1/+0
2010-03-25Fix warnings from -Wmissing-field-initializersSumit Bose1-1/+1
This patch removes some tab-indentations from pamsrv.c, too.
2010-02-22Restrict family lookupsJakub Hrozek1-11/+25
Adds a new option that tells resolver which address family to prefer or use exclusively. Fixes: #404
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+1062
Also update BUILD.txt