summaryrefslogtreecommitdiffstats
path: root/src/resolv/async_resolv.h
Commit message (Collapse)AuthorAgeFilesLines
* resolv: Use the same default timeout for SRV queries as previouslyJakub Hrozek2015-03-031-0/+4
| | | | | | | | | | | When we changed the resolver code to use the TTL values from the DNS queries instead of harcoded ones, we changed the default value by accident. Add a separate SRV TTL that is backwards-compatible with the old harcoded value. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
* RESOLV: Remove obsolete in-tree implementation of SRV and TXT parsingJakub Hrozek2015-02-111-6/+0
| | | | | | | | | SSSD contained several backwards-compatible definitions of SRV and TXT APIs as well as structures that carry TTL data. These were intended for RHEL-5 and older releases. Since we don't support those upstream, it's better to remove the code -- it has drifted apart from upstream anyway. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
* RESOLV: Add an internal function to read TTL from a DNS packetJakub Hrozek2015-02-111-1/+3
| | | | | | | | | | | | Related: https://fedorahosted.org/sssd/ticket/1884 Adds an internal resolver function that reads the TTL for SRV records as specified by RFC-2181. Several internal c-ares definitions are used until c-ares contains a function that exposes all this information via a parsing function. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
* resolv_sort_srv_reply: remove unnecessary mem_ctxPavel Březina2013-09-051-1/+1
|
* Remove unused constant.Michal Zidek2013-07-231-2/+0
|
* Actually use the index parameter in resolv_get_sockaddr_address_indexJakub Hrozek2013-05-071-2/+3
|
* dyndns: New option dyndns_update_ptrJakub Hrozek2013-05-031-2/+5
| | | | | | | | | | | | | | | | https://fedorahosted.org/sssd/ticket/1832 While some servers, such as FreeIPA allow the PTR record to be synchronized when the forward record is updated, other servers, including Active Directory, require that the PTR record is synchronized manually. This patch adds a new option, dyndns_update_ptr that automatically generates appropriate DNS update message for updating the reverse zone. This option is off by default in the IPA provider. Also renames be_nsupdate_create_msg to be_nsupdate_create_fwd_msg
* resolver: Return PTR record as stringJakub Hrozek2013-05-031-0/+4
| | | | | This is a requirement to update the PTR records. Includes a unit test.
* resolv: add resolv_discover_srv request to resolv utilsPavel Březina2013-04-101-0/+13
|
* resolv: add resolv_get_domain request to resolv utilsPavel Březina2013-04-101-0/+14
|
* Centralize resolv_init, remove resolv context listJakub Hrozek2013-04-031-1/+1
|
* Init failover with be_res optionsJakub Hrozek2013-04-031-5/+0
|
* Allow returning arbitrary address from resolv_hostent as stringJakub Hrozek2011-07-111-1/+6
|
* Split reading resolver family order into a separate functionJakub Hrozek2011-07-111-0/+8
|
* Do not hardcode default resolver timeoutJakub Hrozek2011-07-111-0/+2
|
* Add sockaddr_storage to sdap_serviceSumit Bose2011-06-301-0/+4
|
* Switch resolver to using resolv_hostent and honor TTLJakub Hrozek2011-06-151-25/+31
|
* Add new resolv_hostent data structure and utility functionsJakub Hrozek2011-06-151-0/+29
|
* Add utility function to return IP address as stringJakub Hrozek2011-06-021-0/+3
|
* Sort SRV replies according to RFC 2782Jakub Hrozek2010-04-301-0/+4
| | | | | | | | | | 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.
* Restrict family lookupsJakub Hrozek2010-02-221-1/+9
| | | | | | | 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-181-0/+95
Also update BUILD.txt