History log of /openbsd/include/resolv.h (Results 1 – 23 of 23)
Revision Date Author Comments
# 931108e9 22-Nov-2021 jca <jca@openbsd.org>

Implement rfc6840 (AD flag processing) if using trusted name servers

libc can't do DNSSEC validation but it can ask a "security-aware"
resolver to do so. Let's send queries with the AD flag set whe

Implement rfc6840 (AD flag processing) if using trusted name servers

libc can't do DNSSEC validation but it can ask a "security-aware"
resolver to do so. Let's send queries with the AD flag set when
appropriate, and let applications look at the AD flag in responses in
a safe way, ie clear the AD flag if the resolvers aren't trusted.
By default we only trust resolvers if resolv.conf(5) only lists name
servers on localhost - the obvious candidates being unwind(8) and
unbound(8). For non-localhost resolvers, an admin who trusts *all the
name servers* listed in resolv.conf(5) *and the network path leading to
them* can annotate this with "options trust-ad".

AD flag processing gives ssh -o VerifyHostkeyDNS=Yes a chance to fetch
SSHFP records in a secure manner, and tightens the situation for other
applications, eg those using RES_USE_DNSSEC for DANE. It should be
noted that postfix currently assumes trusted name servers by default and
forces RES_TRUSTAD if available.

RES_TRUSTAD and "options trust-ad" were first introduced in glibc by
Florian Weimer. Florian Obser (florian@) contributed various
improvements, fixed a bug and added automatic trust for name servers on
localhost.

ok florian@ phessler@

show more ...


# 3d657e16 14-Jan-2019 otto <otto@openbsd.org>

There are cases where a program doing dns requests wants to set the
Checking Disabled flag. Introduce a RES flag to do so. ok krw@
deraadt@ eric@


# 407745ea 12-Sep-2016 guenther <guenther@openbsd.org>

Change the (unused) restimespec member of __res_state from a timespec
to a local equivalent to eliminate a dependency on <sys/time.h> being
included

ok deraadt@ millert@


# 261d6955 25-Sep-2015 guenther <guenther@openbsd.org>

Trim symbols that aren't part of our new resolver

OK semarie@


# 4a39ccd0 05-Dec-2012 deraadt <deraadt@openbsd.org>

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


# f4d024fa 10-Jul-2012 guenther <guenther@openbsd.org>

Stop pulling in <sys/param.h>

ok deraadt@


# 60842fda 04-Jun-2009 pyr <pyr@openbsd.org>

Add a resolv.conf option to specify the order in which getaddrinfo
PF_UNSPEC queries are made. While there change the default from inet6
first then inet4 to inet4 first then inet6, this prevents the

Add a resolv.conf option to specify the order in which getaddrinfo
PF_UNSPEC queries are made. While there change the default from inet6
first then inet4 to inet4 first then inet6, this prevents the many
people with IPv4 only connectivity from constantly trying to contact
IPv6 addresses, and also unbreaks many ports who don't use getaddrinfo
right.

ok deraadt@, plenty of cheering in the room wrt the idea, not loud
enough complaining from the v6 crowd.

show more ...


# ec39ddb4 30-Mar-2005 tedu <tedu@openbsd.org>

make the resolver stat resolv.conf and update if it changes.
useful feedback and ok deraadt@


# d1f942ab 22-Jan-2004 espie <espie@openbsd.org>

Remove unnecessary typedef usage.

u_char -> unsigned char
u_short -> unsigned short
u_long -> unsigned long
u_int -> unsigned int

okay millert@


# 89b95c1c 01-Aug-2003 avsm <avsm@openbsd.org>

add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@


# 3e87668a 26-Jun-2003 avsm <avsm@openbsd.org>

backout the __bounded__ attributes for a while; requested by deraadt@


# 585be00b 26-Jun-2003 avsm <avsm@openbsd.org>

Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok


# e33d3bd3 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 82fb7937 03-Jun-2002 deraadt <deraadt@openbsd.org>

compatiblity -> compatibility
decriptor -> descriptor
authentciated -> authenticated
transmition -> transmission


# f3c3a9c6 17-Feb-2002 millert <millert@openbsd.org>

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


# a572a86e 31-Jul-2001 jakob <jakob@openbsd.org>

add support for EDNS0 extended flag DNSSEC OK (aka DO). ok deraadt@


# 79b6bf38 11-Jun-2001 itojun <itojun@openbsd.org>

support EDNS0 (RFC2671) buffer size notification on DNS queries.
"options edns0" in /etc/resolv.conf will enable the behavior. no behavior
change if you don't have the line. see resolv.conf(5) for

support EDNS0 (RFC2671) buffer size notification on DNS queries.
"options edns0" in /etc/resolv.conf will enable the behavior. no behavior
change if you don't have the line. see resolv.conf(5) for more details.

EDNS0 is useful for avoiding TCP DNS queries/replies on larger DNS responses.
also, draft-ietf-dnsext-message-size-* plans to mandate EDNS0 support for DNS
clients that support IPv6 transport.

show more ...


# 941451a5 04-Jan-2001 todd <todd@openbsd.org>

spelling


# f2f113e9 22-Jun-2000 itojun <itojun@openbsd.org>

ipv6 support in resolver. "nameserver" line in /etc/resolv.conf now takes
ipv6 address.


# 1231c441 13-Mar-1997 downsj <downsj@openbsd.org>

BIND 4.9.5 includes.


# 1ddd5cc1 19-Feb-1996 dm <dm@openbsd.org>

netbsd: bind 4.9.3


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree