summaryrefslogtreecommitdiff
path: root/lib/libc/net/res_init.3
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2020-04-25 14:30:06 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2020-04-25 14:30:06 +0000
commiteea32431bc9fab90ae9ca1fe5aacf3ef38993c5e (patch)
tree2dd83609eb60345e4a388f6766b77d312c0271eb /lib/libc/net/res_init.3
parent6566ae8b72e7f4e817c76e04c720af55b5c43774 (diff)
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@
Diffstat (limited to 'lib/libc/net/res_init.3')
-rw-r--r--lib/libc/net/res_init.316
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libc/net/res_init.3 b/lib/libc/net/res_init.3
index 01a6b8e0b33..f9f13cf4f90 100644
--- a/lib/libc/net/res_init.3
+++ b/lib/libc/net/res_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: res_init.3,v 1.1 2019/08/30 18:33:17 deraadt Exp $
+.\" $OpenBSD: res_init.3,v 1.2 2020/04/25 14:30:05 jca Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 30 2019 $
+.Dd $Mdocdate: April 25 2020 $
.Dt RES_INIT 3
.Os
.Sh NAME
@@ -180,12 +180,14 @@ In the past, it turned off the legacy
.Ev HOSTALIASES
feature.
.It Dv RES_USE_INET6
-Enables support for IPv6-only applications.
-This causes IPv4 addresses to be returned as an IPv4 mapped address.
+With this option
+.Xr gethostbyname 3
+will return IPv6 addresses if available.
+On some operating systems this option also causes IPv4 addresses to be
+returned as IPv4-mapped IPv6 addresses.
For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1.
-On
-.Ox
-this option does nothing.
+IPv4-mapped IPv6 addresses are not supported on
+.Ox .
.It Dv RES_USE_EDNS0
Attach an OPT pseudo-RR for the EDNS0 extension,
as specified in RFC 2671.