summaryrefslogtreecommitdiffstats
path: root/src/resolv
Commit message (Collapse)AuthorAgeFilesLines
* Reschedule the fd timeout for secondary lookupsStephen Gallagher2010-12-141-0/+4
| | | | | | | | | | | We were unscheduling the timeout handler after the first lookup (A or AAAA) returned, but not rescheduling it if we went on to check the secondary record type. This resulted in the resolver never returning a result for the secondary lookup, which can mean that logins/screen unlocks after VPN drop or suspend/resume might never complete. Fixes https://fedorahosted.org/sssd/ticket/729
* Fix timeouts for DNS resolverStephen Gallagher2010-12-141-1/+1
| | | | | | | options.tries specifies the number of retries. Setting this to zero means to try exactly once. Previously we were always trying twice (internally). We want to simply honor the SSSD configuration and fail over to the next server (or go offline) after one try.
* Internal DNS resolver should check /etc/hostsJakub Hrozek2010-11-241-0/+2
| | | | https://fedorahosted.org/sssd/ticket/686
* Add dns_resolver_timeout optionStephen Gallagher2010-04-301-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)
* Support SRV servers in failoverJakub Hrozek2010-04-301-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
* Sort SRV replies according to RFC 2782Jakub Hrozek2010-04-302-0/+248
| | | | | | | | | | 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.
* Do not mark a request as failed twiceJakub Hrozek2010-04-261-1/+0
|
* Fix warnings from -Wmissing-field-initializersSumit Bose2010-03-251-1/+1
| | | | This patch removes some tab-indentations from pamsrv.c, too.
* Restrict family lookupsJakub Hrozek2010-02-222-12/+34
| | | | | | | Adds a new option that tells resolver which address family to prefer or use exclusively. Fixes: #404
* Rename server/ directory to src/Stephen Gallagher2010-02-189-0/+1911
Also update BUILD.txt