1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-04 23:35:36 -08:00
Commit Graph

23 Commits

Author SHA1 Message Date
jca
931108e92d 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@
2021-11-22 20:18:27 +00:00
otto
3d657e16d4 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@
2019-01-14 06:23:06 +00:00
guenther
407745eaed 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@
2016-09-12 19:35:31 +00:00
guenther
261d695547 Trim symbols that aren't part of our new resolver
OK semarie@
2015-09-25 23:32:51 +00:00
deraadt
4a39ccd02c Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
2012-12-05 23:19:48 +00:00
guenther
f4d024fab1 Stop pulling in <sys/param.h>
ok deraadt@
2012-07-10 11:46:23 +00:00
pyr
60842fda97 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.
2009-06-04 18:06:35 +00:00
tedu
ec39ddb442 make the resolver stat resolv.conf and update if it changes.
useful feedback and ok deraadt@
2005-03-30 02:58:28 +00:00
espie
d1f942ab4c Remove unnecessary typedef usage.
u_char -> unsigned char
u_short -> unsigned short
u_long -> unsigned long
u_int -> unsigned int

okay millert@
2004-01-22 21:48:02 +00:00
avsm
89b95c1c6c add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
2003-08-01 17:38:33 +00:00
avsm
3e87668a71 backout the __bounded__ attributes for a while; requested by deraadt@ 2003-06-26 19:34:17 +00:00
avsm
585be00bb5 Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
2003-06-26 18:35:13 +00:00
millert
e33d3bd3b8 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-02 19:34:12 +00:00
deraadt
82fb79371c compatiblity -> compatibility
decriptor -> descriptor
authentciated -> authenticated
transmition -> transmission
2002-06-03 12:14:30 +00:00
millert
f3c3a9c6df Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree) 2002-02-17 19:42:18 +00:00
millert
c72b5b24e1 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. 2002-02-16 21:27:05 +00:00
jakob
a572a86e93 add support for EDNS0 extended flag DNSSEC OK (aka DO). ok deraadt@ 2001-07-31 22:02:18 +00:00
itojun
79b6bf3810 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.
2001-06-11 10:05:58 +00:00
todd
941451a598 spelling 2001-01-04 21:36:58 +00:00
itojun
f2f113e966 ipv6 support in resolver. "nameserver" line in /etc/resolv.conf now takes
ipv6 address.
2000-06-22 07:31:18 +00:00
downsj
1231c44100 BIND 4.9.5 includes. 1997-03-13 19:11:49 +00:00
dm
1ddd5cc1d5 netbsd: bind 4.9.3 1996-02-19 19:53:13 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00