| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
the routing domain we are currently in. Otherwise we might end up with
address families that are not available in the current rdomain but in
others since getifaddrs(3) gives us all interface addresses in the
system.
Clue-bat & OK claudio, input & OK eric, OK kn
|
|
|
|
| |
Also simplify code.
|
|
|
|
| |
ok guenther@ tb@ deraadt@
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
ok jca@ krw@ gilles@
|
|
|
|
|
|
|
| |
rather than a non-informative EAI_FAIL. Compare to -1 for error detection
while here.
ok jca@ gilles@
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
ok 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
|
| |
|
| |
|
| |
|
|
|
|
| |
direction & ok guenther
|
|
|
|
| |
ok gilles@
|
|
|
|
|
|
| |
with a newline.
ok jca@
|
| |
|
|
|
|
| |
ok eric@
|
|
|
|
|
| |
prodded by Brad
ok jca@
|
|
|
|
|
|
|
| |
This is what RFC3493 suggests. Fixes AI_ADDRCONFIG on setups where
global addresses are configured only on loopback interfaces.
Discussed with and ok eric@ gilles@
|
|
|
|
| |
Input from and ok gilles@ eric@
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
it to get limits.h early enough
|
|
|
|
| |
ok espie@ deraadt@ millert@ tedu@
|
|
|
|
|
|
|
| |
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.
ok miod@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
ok 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
|
|
|
|
|
|
| |
Include tweaks suggested by mpi@
ok deraadt@
|
|
|
|
|
|
| |
structures, functions and defines.
discussed with and ok deraadt@ guenther@
|
|
|
|
|
|
| |
the API gets public.
ok deraadt@
|
|
|
|
|
| |
reported by tedu@
ok tedu@ deraadt@
|
|
|
|
|
| |
on the install media...
ok eric
|
|
|
|
|
|
| |
hostnames before returning them to the caller.
ok deraadt@
|
|
|
|
| |
be done "inside" the search domain loop, not the other way round.
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
async API. That is actually useless and it makes the code more
complicated. The required buffers are always allocated when needed.
|
| |
|
|
|
|
|
|
| |
This fixes hostname resolution for OpenVPN 2.3.1.
ok eric@.
|
| |
|
|
|
|
| |
ok sthen@ bluhm@
|
|
|
|
| |
issue spotted by naddy@
|
|
|
|
|
| |
Better not diverge too much in behavior at this point.
Typo fix and doc update while there.
|
| |
|
| |
|
|
|
|
| |
remove unused variable.
|