summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjca <>2020-04-25 16:23:59 +0000
committerjca <>2020-04-25 16:23:59 +0000
commit9b1773998e4fae89c6d48348232d7eae5e73e46d (patch)
treee05029e55ea309420fe9566f12552a479c671b49
parent472acbf5954e2e9274ea002566a2ea1dcbe4bb48 (diff)
downloadopenbsd-9b1773998e4fae89c6d48348232d7eae5e73e46d.tar.gz
openbsd-9b1773998e4fae89c6d48348232d7eae5e73e46d.tar.bz2
openbsd-9b1773998e4fae89c6d48348232d7eae5e73e46d.zip
Discourage use of RES_USE_INET6
Suggested by eric@, input from deraadt@, ok deraadt@ eric@
-rw-r--r--src/lib/libc/net/res_init.36
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libc/net/res_init.3 b/src/lib/libc/net/res_init.3
index f9f13cf4f9..6b15b675b1 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.2 2020/04/25 14:30:05 jca Exp $ 1.\" $OpenBSD: res_init.3,v 1.3 2020/04/25 16:23:59 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.
@@ -183,6 +183,10 @@ feature.
183With this option 183With this option
184.Xr gethostbyname 3 184.Xr gethostbyname 3
185will return IPv6 addresses if available. 185will return IPv6 addresses if available.
186This option is deprecated, software should use the
187.Xr getaddrinfo 3
188interface instead of modifying the behavior of
189.Xr gethostbyname 3 .
186On some operating systems this option also causes IPv4 addresses to be 190On some operating systems this option also causes IPv4 addresses to be
187returned as IPv4-mapped IPv6 addresses. 191returned as IPv4-mapped IPv6 addresses.
188For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1. 192For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1.