Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-05-13 | skip incomplete entries in /etc/hosts and /etc/networks | Eric Faurot | |
fix null deref spotted by Seth Hanford, pinpointed by dtucker@ ok florian@ | |||
2014-05-10 | remove warning by adding explicit parentheses around && within || | Charles Longeau | |
ok sperreault@ | |||
2014-04-28 | Implement AI_ADDRCONFIG | sperreault | |
This is a getaddrinfo() flag that is defined thusly in RFC 3493: If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be returned only if an IPv4 address is configured on the local system, and IPv6 addresses shall be returned only if an IPv6 address is configured on the local system. The loopback address is not considered for this case as valid as a configured address. For example, when using the DNS, a query for AAAA records should occur only if the node has at least one IPv6 address configured (other than IPv6 loopback) and a query for A records should occur only if the node has at least one IPv4 address configured (other than the IPv4 loopback). The flag is set by default when hints is NULL. ok Eric Faurot, Jason McIntyre | |||
2014-04-17 | Don't default enable the debug functionality with its unprotected getenv(). | Philip Guenther | |
ok eric@ sthen@ deraadt@ | |||
2014-03-26 | Make the asr API public. Install asr.h to /usr/include.h and manpages. | Eric Faurot | |
Include tweaks suggested by mpi@ ok deraadt@ | |||
2014-03-26 | update manpage | Eric Faurot | |
2014-03-25 | Cleanup and simplify the API to be exposed. Use better names for | Eric Faurot | |
structures, functions and defines. discussed with and ok deraadt@ guenther@ | |||
2014-03-14 | prefix structure names to avoid ambiguity and possible collisions when | Eric Faurot | |
the API gets public. ok deraadt@ | |||
2014-03-03 | fix support for HOSTALIASES. | Eric Faurot | |
reported by tedu@ ok tedu@ deraadt@ | |||
2014-02-26 | need more #include files for resolv.h, for the non-YP case, which happens | Theo de Raadt | |
on the install media... ok eric | |||
2014-02-26 | Do not restrict chars in dname during label expansion, but validate resulting | Eric Faurot | |
hostnames before returning them to the caller. ok deraadt@ | |||
2014-02-24 | make res_search() report NO_DATA instead of HOST_NOT_FOUND in some cases. | Eric Faurot | |
issue reported by matthieu@ ok matthieu@ deraadt@ | |||
2014-02-17 | Better search strategy for getaddrinfo. The address family loop must | Eric Faurot | |
be done "inside" the search domain loop, not the other way round. | |||
2014-02-17 | report extra PTR records as aliases | Eric Faurot | |
2014-01-15 | Initialise _res.nsaddr_list in res_init(), fixing some programs which depend | Stuart Henderson | |
on bind resolver internals. Note, the list will not be updated if resolv.conf is changed while the program runs unless the caller resets the RES_INIT flag. Approach suggested by otto@, original diff from Kapetanakis Giannis, fix suggested by tedu@ and dug up again by Riccardo Mottola. Looks ok to eric@. | |||
2013-11-24 | most obvious unsigned char casts for ctype | Theo de Raadt | |
ok jca krw ingo | |||
2013-11-12 | pull in missing includes (math.h, unistd.h, stdlib.h) needed for | Theo de Raadt | |
prototypes | |||
2013-08-08 | sync with recent name changes; | Jason McIntyre | |
2013-07-17 | missing symbol rename. | Eric Faurot | |
2013-07-12 | Make some symbols static and prefix all visible symbols with asr_ | Eric Faurot | |
to prevent collisions with third-party programs. suggested by sthen@, ok theo@ | |||
2013-06-05 | Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze | Ted Unangst | |
2013-06-01 | Move search domain iteration code in res_search_async.c where it belongs. | Eric Faurot | |
2013-06-01 | Make hostaliases work for gethostbyname() and getaddrinfo() when | Eric Faurot | |
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(). | |||
2013-06-01 | Update asr_hostaliases() to make all necessary checks in the function. | Eric Faurot | |
Explicitely check for issetguid() before calling getenv(). Also make asr_hostalias() callable from other parts of asr too. | |||
2013-06-01 | iterating over the ns list only matters for res_send_async.c, so move | Eric Faurot | |
things around. | |||
2013-05-29 | use paramaters instead of static storage in _gethostbyname() | Eric Faurot | |
2013-05-27 | Add minimal support for _res setup and update. | Eric Faurot | |
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@ | |||
2013-04-30 | various small fixes; | Jason McIntyre | |
2013-04-30 | Do not take external buffers for storing DNS responses in the internal | Eric Faurot | |
async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed. | |||
2013-04-30 | copy input flags in result addrinfo structures. | Eric Faurot | |
2013-04-17 | check return value of strdup(), fix mem leak in error path and take | Otto Moerbeek | |
into account that asr_use_resolver() can return NULL; ok tedu@ eric@ | |||
2013-04-17 | give a timespec a name that is easier to verify | Theo de Raadt | |
2013-04-14 | spacing | Theo de Raadt | |
2013-04-11 | Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinit | Otto Moerbeek | |
of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@ | |||
2013-04-09 | show what we parsed in debug output; ok guether@ | Otto Moerbeek | |
2013-04-08 | Do not fail if the user buffer is too short to hold the packet: fill it up | Eric Faurot | |
to the given size and return the packet length. issue spotted by weerd@ | |||
2013-04-08 | Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right. | Christopher Zimmermann | |
This fixes hostname resolution for OpenVPN 2.3.1. ok eric@. | |||
2013-04-05 | do not fail on EINTR | Eric Faurot | |
suggested by deraadt@ | |||
2013-04-04 | fix alignment issue in getnetby{addr,name}() too. | Eric Faurot | |
2013-04-04 | use the provided ALIGN() macro instead of re-inventing a square wheel. | Eric Faurot | |
prodded by deraadt@ | |||
2013-04-03 | properly follow the CNAME chain in reverse lookups | Eric Faurot | |
spotted by sthen@ | |||
2013-04-03 | Use MSG_NOSIGNAL when writing DNS queries over TCP sockets to ensure | Matthew Dempsky | |
we don't trigger SIGPIPE. ok millert | |||
2013-04-02 | add comment for how EINPROGRESS is handled there. | Eric Faurot | |
2013-04-02 | make sure we always point before the current offset. | Eric Faurot | |
spotted by matthew@ | |||
2013-04-02 | better implementation for tcp_read() that can get the packet length in | Eric Faurot | |
multiple read. prodded by deraadt@ | |||
2013-04-01 | If more than one lookup line is found in resolv.conf, the latest one | Eric Faurot | |
takes precedence. Simplify code while there. suggested by deraadt@ | |||
2013-04-01 | properly check for domain name truncation at various places and fail | Eric Faurot | |
if that happens. prodded by deraadt@ | |||
2013-04-01 | space cleanup; ok eric | Theo de Raadt | |
2013-04-01 | space cleanup; ok eric | Theo de Raadt | |
2013-04-01 | rename field | Eric Faurot | |