| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
wrappers around gethostby*_async(3). If you had anything of
importance in /etc/networks, specify it in /etc/hosts instead.
Feedback and OK eric@, OK deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
| |
RES_USE_DNSSEC is implemented by setting the DNSSEC DO bit in outgoing
queries. The resolver is then supposed to set the AD bit in the reply
if it managed to validate the answer through DNSSEC. Useful when the
application doesn't implement validation internally. This scheme
assumes that the validating resolver is trusted and that the
communication channel between the validating resolver and and the client
is secure.
ok eric@ gilles@
|
|
|
|
|
|
| |
Needed for RES_USE_DNSSEC support.
ok eric@ gilles@
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
element of the union.
ok gilles@ millert@ krw@
|
|
|
|
|
|
|
| |
EDNS allows for various DNS extensions, among which UDP DNS packets size
bigger than 512 bytes. The default is still to not advertize anything.
ok eric@
|
|
|
|
|
|
| |
pack/unpack contexts.
ok krw@ deraadt@
|
|
|
|
|
|
|
| |
whining about undefined static in all the .c files that include
asr_private.h. _asr_resolver() is defined and used in asr.c only.
ok kettenis@
|
|
|
|
| |
Reported by & similar diff by guenther@ some time ago, ok eric@
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
the resolver.
ok millert@ deraadt@
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
ok jca@
|
|
|
|
| |
direction & ok guenther
|
|
|
|
|
|
| |
print_sockaddr is internal to asr, and conflicts with ports/net/samba4.
ok eric@
|
|
|
|
|
|
| |
is used after pid has changed.
ok deraadt@
|
|
|
|
|
|
| |
with a newline.
ok jca@
|
| |
|
|
|
|
|
|
|
|
|
| |
This is what RFC 2553 initially described, sadly RFC 3493 stopped
limiting scope to DNS. This can result in nonsensical failures with
loopback addresses, link-local addresses, raw addresses and /etc/hosts
entries.
with and ok eric@ sperreault@
|
|
|
|
| |
ok eric@ sthen@ deraadt@
|
|
|
|
|
|
| |
structures, functions and defines.
discussed with and ok deraadt@ guenther@
|
|
|
|
|
|
| |
the API gets public.
ok deraadt@
|
|
|
|
|
|
| |
to prevent collisions with third-party programs.
suggested by sthen@, ok theo@
|
| |
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
Explicitely check for issetguid() before calling getenv(). Also make
asr_hostalias() callable from other parts of asr too.
|
|
|
|
| |
things around.
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
async API. That is actually useless and it makes the code more
complicated. The required buffers are always allocated when needed.
|
|
|
|
|
|
| |
multiple read.
prodded by deraadt@
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
short writes.
prodded by deraadt@
|
|
|
|
|
| |
Better not diverge too much in behavior at this point.
Typo fix and doc update while there.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
directly into getaddrinfo_async_run. Simplifies everything by
a great deal.
|
|
|
|
|
|
| |
round of a getaddrinfo_async() simplification. The goal is to make YP
support easier to add, and eventually remove the whole hostaddr_async
subquery.
|
| |
|
| |
|
|
The idea is to eventually replace the existing resolver with
something better. Time to start working on it in tree.
ok deraadt@
|