summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/res_search_async.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Put a common flags field in the query struct, rather than in somejca2017-02-271-5/+5
| | | | | | | | | elements of the union. This field is for internal asr flags. The flags in "struct rrset" and "struct ni" are different kinds of flags. ok eric@
* Put a common subq pointer in the query struct, rather than one in eacheric2017-02-231-5/+5
| | | | | | element of the union. ok gilles@ millert@ krw@
* Remove support for HOSTALIASES from the resolver. This "open and parsederaadt2015-12-161-5/+1
| | | | | | | | any file indicated by an environment variable" feature inside the resolver is incompatible with what pledge "dns" is trying to be. It is a misguided "feature" added way back in history which almost noone uses, but everyone has to assume the risk from. ok eric florian kettenis
* remove bogus includes of err.heric2015-09-201-2/+1
|
* Wrap <asr.h> so internal calls go direct and all the symbols are weakguenther2015-09-141-1/+2
|
* Hide all unnecessary asr / resolver related API with _ prefixes.deraadt2015-09-091-14/+13
| | | | direction & ok guenther
* Skip search domains iteration if RES_DNSRCH and/or RES_DEFNAMES is unset.eric2015-05-251-2/+7
| | | | | prodded by Brad ok jca@
* Make queries using the search list for hostname lookups fail witheric2014-07-231-1/+7
| | | | | | | | | | NO_DATA/EAI_NODATA when the hostname param is an empty string. So far, they were using the entries in the search list with no additional component, which is not really expected. reported by jsing@ and a few others ok deraadt@, "makes sense" jsing@
* Make the asr API public. Install asr.h to /usr/include.h and manpages.eric2014-03-261-2/+4
| | | | | | Include tweaks suggested by mpi@ ok deraadt@
* Cleanup and simplify the API to be exposed. Use better names foreric2014-03-251-13/+13
| | | | | | structures, functions and defines. discussed with and ok deraadt@ guenther@
* make res_search() report NO_DATA instead of HOST_NOT_FOUND in some cases.eric2014-02-241-2/+2
| | | | | | issue reported by matthieu@ ok matthieu@ deraadt@
* Make some symbols static and prefix all visible symbols with asr_eric2013-07-121-17/+17
| | | | | | to prevent collisions with third-party programs. suggested by sthen@, ok theo@
* Move search domain iteration code in res_search_async.c where it belongs.eric2013-06-011-1/+116
|
* Make hostaliases work for gethostbyname() and getaddrinfo() wheneric2013-06-011-1/+5
| | | | | | looking into /etc/hosts. Remove the alias check from the search domain iteration. Instead, take a shortcut to res_query_async_ctx() in res_search_async_ctx().
* Do not take external buffers for storing DNS responses in the internaleric2013-04-301-31/+6
| | | | | async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
* properly check for domain name truncation at various places and faileric2013-04-011-2/+2
| | | | | | if that happens. prodded by deraadt@
* space cleanup; ok ericderaadt2013-04-011-3/+3
|
* Only use the search domains for DNS lookups, as the current resolver does.eric2013-03-271-2/+2
| | | | | Better not diverge too much in behavior at this point. Typo fix and doc update while there.
* knferic2012-11-241-9/+11
|
* use proper macros for debug traces.eric2012-09-091-8/+5
|
* Import asr, an experimental async resolver implementation.eric2012-04-141-0/+224
The idea is to eventually replace the existing resolver with something better. Time to start working on it in tree. ok deraadt@