Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove duplicated line. | 2016-06-18 | 1 | -2/+1 | |
| | | | | OK eric@ | ||||
* | typo fixes; Anthony Coulter | 2016-05-27 | 1 | -2/+2 | |
| | |||||
* | Calculate elapsed time in poll() and subtract that from the remaining time | 2016-05-26 | 1 | -4/+19 | |
| | | | | | | | | | | when restarting poll() after receiving a signal. The ruby runtime send signals to threads periodically, so without accounting for elapsed time, the timeout would never expire if we didn't get a response from a nameserver. ok deraadt@ eric@ | ||||
* | Avoid a possible double-free if the "search" keyword is used multiple times. | 2016-02-24 | 1 | -2/+4 | |
| | | | | ok jca@ gilles@ | ||||
* | Remove support for HOSTALIASES from the resolver. This "open and parse | 2015-12-16 | 1 | -48/+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 support for "lookup yp" in /etc/resolv.conf. This historical | 2015-11-23 | 1 | -4/+4 | |
| | | | | | | | | wart is incompatible with pledge, because suddenly a "dns" operation needs "getpw" access to ypbind/ypserv, etc. file + dns access is enough for everyone, sorry if you were using that old SunOS 4.x style mechanism, but it is now gone. ok semarie millert florian | ||||
* | We are always using _PATH_RESCONF, so no need to remember the path on | 2015-10-28 | 1 | -14/+4 | |
| | | | | | | the resolver. ok millert@ deraadt@ | ||||
* | Remove support for [addr]:port syntax from the "nameserver" line. | 2015-10-28 | 1 | -22/+1 | |
| | | | | | | | This extension never made it to other systems. (pledge is also happy with this. The idea of DNS @ any port collides with pledge encouraring differentiation between DNS and non-DNS sockets) ok phessler jung sthen kettenis | ||||
* | getaddrinfo_async() shouldn't unconditionally intialize the resolver | 2015-10-07 | 1 | -1/+7 | |
| | | | | | | via _asr_use_resolver(). If the hint specifies for AI_NUMERICHOST, create a transient lookup context which won't try to open /etc/reslov.conf ok eric guenther | ||||
* | Initially eric developers asr as a side-load style library for async DNS. | 2015-10-03 | 1 | -63/+13 | |
| | | | | | | | When it was integrated as the main resolver, a bunch of strange initialization code remained. Start whittling away at this, piece by piece, to make it more clear. ok eric | ||||
* | missing asr* -> _asr* symbol rename for building with debug code | 2015-10-03 | 1 | -5/+5 | |
| | | | | ok jca@ | ||||
* | remove bogus includes of err.h | 2015-09-20 | 1 | -2/+1 | |
| | |||||
* | use _PATH_RESCONF directly | 2015-09-20 | 1 | -3/+2 | |
| | |||||
* | Wrap <asr.h> so internal calls go direct and all the symbols are weak | 2015-09-14 | 1 | -1/+3 | |
| | |||||
* | Hide all unnecessary asr / resolver related API with _ prefixes. | 2015-09-09 | 1 | -26/+26 | |
| | | | | direction & ok guenther | ||||
* | use _PATH_RESCONF | 2015-09-02 | 1 | -2/+2 | |
| | |||||
* | make sure to check for resolv.conf update the first time the resolver | 2015-06-04 | 1 | -1/+9 | |
| | | | | | | is used after pid has changed. ok deraadt@ | ||||
* | fix a possible off-by-one when reading /etc/hosts if it doesn't end | 2015-05-29 | 1 | -2/+9 | |
| | | | | | | with a newline. ok jca@ | ||||
* | simply use _PATH_HOSTS where appropriate | 2015-05-26 | 1 | -4/+1 | |
| | |||||
* | Move to the <limits.h> universe. | 2015-01-16 | 1 | -1/+2 | |
| | | | | review by millert, binary checking process with doug, concept with guenther | ||||
* | When fopen()ing internal to libc (the API doesn't support the use | 2014-09-15 | 1 | -3/+3 | |
| | | | | | | | of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@ | ||||
* | Make the asr API public. Install asr.h to /usr/include.h and manpages. | 2014-03-26 | 1 | -3/+4 | |
| | | | | | | Include tweaks suggested by mpi@ ok deraadt@ | ||||
* | Cleanup and simplify the API to be exposed. Use better names for | 2014-03-25 | 1 | -18/+20 | |
| | | | | | | structures, functions and defines. discussed with and ok deraadt@ guenther@ | ||||
* | Make some symbols static and prefix all visible symbols with asr_ | 2013-07-12 | 1 | -22/+22 | |
| | | | | | | 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. | 2013-06-01 | 1 | -108/+1 | |
| | |||||
* | Make hostaliases work for gethostbyname() and getaddrinfo() when | 2013-06-01 | 1 | -20/+1 | |
| | | | | | | 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(). | ||||
* | Update asr_hostaliases() to make all necessary checks in the function. | 2013-06-01 | 1 | -13/+12 | |
| | | | | | Explicitely check for issetguid() before calling getenv(). Also make asr_hostalias() callable from other parts of asr too. | ||||
* | iterating over the ns list only matters for res_send_async.c, so move | 2013-06-01 | 1 | -32/+1 | |
| | | | | things around. | ||||
* | Add minimal support for _res setup and update. | 2013-05-27 | 1 | -4/+4 | |
| | | | | | | | | Change res_init() to initialize the _res structure on first call, and udpate the global async context if changes were made by the user. All resolver functions now call res_init() internally. fixes issue spotted by otto@ | ||||
* | Do not take external buffers for storing DNS responses in the internal | 2013-04-30 | 1 | -2/+2 | |
| | | | | | async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed. | ||||
* | check return value of strdup(), fix mem leak in error path and take | 2013-04-17 | 1 | -10/+17 | |
| | | | | into account that asr_use_resolver() can return NULL; ok tedu@ eric@ | ||||
* | give a timespec a name that is easier to verify | 2013-04-17 | 1 | -5/+5 | |
| | |||||
* | Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinit | 2013-04-11 | 1 | -3/+3 | |
| | | | | | of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@ | ||||
* | If more than one lookup line is found in resolv.conf, the latest one | 2013-04-01 | 1 | -18/+9 | |
| | | | | | | takes precedence. Simplify code while there. suggested by deraadt@ | ||||
* | properly check for domain name truncation at various places and fail | 2013-04-01 | 1 | -12/+18 | |
| | | | | | | if that happens. prodded by deraadt@ | ||||
* | space cleanup; ok eric | 2013-04-01 | 1 | -6/+6 | |
| | |||||
* | Principle of least astonishment: implement nameserver retry/backoff as | 2013-03-31 | 1 | -3/+9 | |
| | | | | in the former resolver. | ||||
* | Do not assume local nameserver if resolv.conf doesn't exist, just use | 2013-03-30 | 1 | -2/+2 | |
| | | | | | | /etc/hosts. discussed with deraadt@ | ||||
* | don't ever skip reload the very first time; detective work by rpe@; ok eric@ | 2013-03-30 | 1 | -2/+2 | |
| | |||||
* | Only use the search domains for DNS lookups, as the current resolver does. | 2013-03-27 | 1 | -3/+1 | |
| | | | | | Better not diverge too much in behavior at this point. Typo fix and doc update while there. | ||||
* | knf | 2012-11-24 | 1 | -24/+24 | |
| | |||||
* | tweak options | 2012-09-09 | 1 | -5/+10 | |
| | |||||
* | allow to disable some features at build time | 2012-09-09 | 1 | -5/+48 | |
| | |||||
* | cleanup asr_debug.c | 2012-09-09 | 1 | -6/+6 | |
| | |||||
* | use proper macros for debug traces. | 2012-09-09 | 1 | -91/+38 | |
| | |||||
* | return value has no use; make it void. | 2012-09-07 | 1 | -23/+18 | |
| | | | | fix comment. | ||||
* | config parsing is done in one pass now. no need to use callback anymore. | 2012-09-06 | 1 | -11/+9 | |
| | |||||
* | add a strsplit() helper to factorize code a bit. | 2012-09-06 | 1 | -28/+24 | |
| | |||||
* | Get rid of the hostaddr_async subquery and merge its behaviour | 2012-09-05 | 1 | -10/+3 | |
| | | | | | directly into getaddrinfo_async_run. Simplifies everything by a great deal. | ||||
* | Make hostaddr_async() return a linked list of struct addrinfo. First | 2012-09-05 | 1 | -9/+7 | |
| | | | | | | round of a getaddrinfo_async() simplification. The goal is to make YP support easier to add, and eventually remove the whole hostaddr_async subquery. |