summaryrefslogtreecommitdiffstats
path: root/src/resolv
Commit message (Collapse)AuthorAgeFilesLines
* resolv_gethostbyname_send: strdup hostname to work properly when hostname is ↵Pavel Březina2012-07-161-5/+12
| | | | | | | | | allocated on stack If we provide a hostname that was allocated on stack, it may contain invalid data in the time when it is actually resolved. This patch fixes it.
* Return correct resolv_status on resolver timeoutJakub Hrozek2012-03-291-1/+6
| | | | https://fedorahosted.org/sssd/ticket/1274
* Resolver: Introduce a per-request timeoutJakub Hrozek2011-12-201-30/+199
|
* resolver: Free the whole hostent structureJakub Hrozek2011-10-311-1/+1
| | | | | We would only free the hostent structure itself, not its contents. Use a wrapper provided by c-ares to do so.
* Use ares_search instead of ares_query for hostname resolutionJakub Hrozek2011-07-131-1/+1
| | | | | | | ares_query does not take search or domain directives from /etc/resolv.conf into account https://fedorahosted.org/sssd/ticket/922
* Allow returning arbitrary address from resolv_hostent as stringJakub Hrozek2011-07-112-3/+10
|
* Split reading resolver family order into a separate functionJakub Hrozek2011-07-112-0/+49
|
* Do not hardcode default resolver timeoutJakub Hrozek2011-07-111-0/+2
|
* Add sockaddr_storage to sdap_serviceSumit Bose2011-06-302-0/+40
|
* Provide TTL structure names for c-ares < 1.7Jakub Hrozek2011-06-161-0/+8
| | | | | | | | | | | https://fedorahosted.org/sssd/ticket/898 In c-ares 1.7, the upstream renamed the addrttl/addr6ttl structures to ares_addrttl/ares_addr6ttl so they are in the ares_ namespace. Because they are committed to stable ABI, the contents are the same, just the name changed -- so it is safe to just #define the new name for older c-ares version in case the new one is not detected in configure time.
* Switch resolver to using resolv_hostent and honor TTLJakub Hrozek2011-06-152-205/+287
|
* Resolve hosts by name from DNS into resolv_hostentJakub Hrozek2011-06-151-0/+254
|
* Resolve hosts by name from files into resolv_hostentJakub Hrozek2011-06-151-0/+92
|
* Add new resolv_hostent data structure and utility functionsJakub Hrozek2011-06-152-0/+200
|
* Add utility function to return IP address as stringJakub Hrozek2011-06-022-0/+27
|
* Set c-ares to retry nameserversJakub Hrozek2011-05-121-1/+1
| | | | https://fedorahosted.org/sssd/ticket/867
* Use safe alignment macros for in-tree SRV record parsingJakub Hrozek2011-04-121-3/+3
| | | | | | The in-tree SRV record parsing is used with very old c-ares libraries that don't implement the parsing themselves (c-ares < 1.7, used in e.g. RHEL5)
* 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