summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjca <>2020-04-25 14:30:05 +0000
committerjca <>2020-04-25 14:30:05 +0000
commit472acbf5954e2e9274ea002566a2ea1dcbe4bb48 (patch)
treea917f7fd5fc9cf73c11e8e86398f6dda71091525
parent83c3bd364e37a6de8475559eadfef31c0a78a60e (diff)
downloadopenbsd-472acbf5954e2e9274ea002566a2ea1dcbe4bb48.tar.gz
openbsd-472acbf5954e2e9274ea002566a2ea1dcbe4bb48.tar.bz2
openbsd-472acbf5954e2e9274ea002566a2ea1dcbe4bb48.zip
Fix RES_USE_INET6 description
The previous wording implied this option does nothing, which is wrong. This option does affect the way gethostbyname(3) works on OpenBSD (return IPv6 addresses if available). On some systems, it also introduces IPv4-mapped IPv6 addresses, a "feature" that we don't support. ok deraadt@ eric@
-rw-r--r--src/lib/libc/net/res_init.316
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/libc/net/res_init.3 b/src/lib/libc/net/res_init.3
index 01a6b8e0b3..f9f13cf4f9 100644
--- a/src/lib/libc/net/res_init.3
+++ b/src/lib/libc/net/res_init.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: res_init.3,v 1.1 2019/08/30 18:33:17 deraadt Exp $ 1.\" $OpenBSD: res_init.3,v 1.2 2020/04/25 14:30:05 jca Exp $
2.\" 2.\"
3.\" Copyright (c) 1985, 1991, 1993 3.\" Copyright (c) 1985, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.Dd $Mdocdate: August 30 2019 $ 30.Dd $Mdocdate: April 25 2020 $
31.Dt RES_INIT 3 31.Dt RES_INIT 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -180,12 +180,14 @@ In the past, it turned off the legacy
180.Ev HOSTALIASES 180.Ev HOSTALIASES
181feature. 181feature.
182.It Dv RES_USE_INET6 182.It Dv RES_USE_INET6
183Enables support for IPv6-only applications. 183With this option
184This causes IPv4 addresses to be returned as an IPv4 mapped address. 184.Xr gethostbyname 3
185will return IPv6 addresses if available.
186On some operating systems this option also causes IPv4 addresses to be
187returned as IPv4-mapped IPv6 addresses.
185For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1. 188For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1.
186On 189IPv4-mapped IPv6 addresses are not supported on
187.Ox 190.Ox .
188this option does nothing.
189.It Dv RES_USE_EDNS0 191.It Dv RES_USE_EDNS0
190Attach an OPT pseudo-RR for the EDNS0 extension, 192Attach an OPT pseudo-RR for the EDNS0 extension,
191as specified in RFC 2671. 193as specified in RFC 2671.