summaryrefslogtreecommitdiff
path: root/src/resolv
AgeCommit message (Collapse)AuthorFilesLines
2013-05-07Actually use the index parameter in resolv_get_sockaddr_address_indexJakub Hrozek2-6/+10
2013-05-03dyndns: New option dyndns_update_ptrJakub Hrozek2-4/+7
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
2013-05-03resolver: Return PTR record as stringJakub Hrozek2-0/+40
This is a requirement to update the PTR records. Includes a unit test.
2013-04-10resolv: add resolv_discover_srv request to resolv utilsPavel Březina2-0/+194
2013-04-10resolv: add resolv_get_domain request to resolv utilsPavel Březina2-0/+168
2013-04-03Centralize resolv_init, remove resolv context listJakub Hrozek2-18/+3
2013-04-03Init failover with be_res optionsJakub Hrozek2-46/+0
2013-04-03Check for correct variable nameJakub Hrozek1-1/+1
https://fedorahosted.org/sssd/ticket/1864
2012-12-19use talloc_zfree when freeing rhostent in resolverPavel Březina1-1/+1
We should use talloc_zfree() when freeing state variables, so we can later avoid undesirable access after free.
2012-12-18RESOLV: Do not steal the resulting hostent on errorJakub Hrozek1-2/+3
https://fedorahosted.org/sssd/ticket/1706
2012-12-05RESOLV: return ENOENT if the address list is emptyJakub Hrozek1-0/+8
2012-07-16resolv_gethostbyname_send: strdup hostname to work properly when hostname is ↵Pavel Březina1-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.
2012-03-29Return correct resolv_status on resolver timeoutJakub Hrozek1-1/+6
https://fedorahosted.org/sssd/ticket/1274
2011-12-20Resolver: Introduce a per-request timeoutJakub Hrozek1-30/+199
2011-10-31resolver: Free the whole hostent structureJakub Hrozek1-1/+1
We would only free the hostent structure itself, not its contents. Use a wrapper provided by c-ares to do so.
2011-07-13Use ares_search instead of ares_query for hostname resolutionJakub Hrozek1-1/+1
ares_query does not take search or domain directives from /etc/resolv.conf into account https://fedorahosted.org/sssd/ticket/922
2011-07-11Allow returning arbitrary address from resolv_hostent as stringJakub Hrozek2-3/+10
2011-07-11Split reading resolver family order into a separate functionJakub Hrozek2-0/+49
2011-07-11Do not hardcode default resolver timeoutJakub Hrozek1-0/+2
2011-06-30Add sockaddr_storage to sdap_serviceSumit Bose2-0/+40
2011-06-16Provide TTL structure names for c-ares < 1.7Jakub Hrozek1-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.
2011-06-15Switch resolver to using resolv_hostent and honor TTLJakub Hrozek2-205/+287
2011-06-15Resolve hosts by name from DNS into resolv_hostentJakub Hrozek1-0/+254
2011-06-15Resolve hosts by name from files into resolv_hostentJakub Hrozek1-0/+92
2011-06-15Add new resolv_hostent data structure and utility functionsJakub Hrozek2-0/+200
2011-06-02Add utility function to return IP address as stringJakub Hrozek2-0/+27
2011-05-12Set c-ares to retry nameserversJakub Hrozek1-1/+1
https://fedorahosted.org/sssd/ticket/867
2011-04-12Use safe alignment macros for in-tree SRV record parsingJakub Hrozek1-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)
2010-12-14Reschedule the fd timeout for secondary lookupsStephen Gallagher1-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
2010-12-14Fix timeouts for DNS resolverStephen Gallagher1-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.
2010-11-24Internal DNS resolver should check /etc/hostsJakub Hrozek1-0/+2
https://fedorahosted.org/sssd/ticket/686
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 Hrozek2-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.
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 Hrozek2-12/+34
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 Gallagher9-0/+1911
Also update BUILD.txt