diff options
author | jca <> | 2020-04-25 16:23:59 +0000 |
---|---|---|
committer | jca <> | 2020-04-25 16:23:59 +0000 |
commit | 9b1773998e4fae89c6d48348232d7eae5e73e46d (patch) | |
tree | e05029e55ea309420fe9566f12552a479c671b49 | |
parent | 472acbf5954e2e9274ea002566a2ea1dcbe4bb48 (diff) | |
download | openbsd-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.3 | 6 |
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. | |||
183 | With this option | 183 | With this option |
184 | .Xr gethostbyname 3 | 184 | .Xr gethostbyname 3 |
185 | will return IPv6 addresses if available. | 185 | will return IPv6 addresses if available. |
186 | This option is deprecated, software should use the | ||
187 | .Xr getaddrinfo 3 | ||
188 | interface instead of modifying the behavior of | ||
189 | .Xr gethostbyname 3 . | ||
186 | On some operating systems this option also causes IPv4 addresses to be | 190 | On some operating systems this option also causes IPv4 addresses to be |
187 | returned as IPv4-mapped IPv6 addresses. | 191 | returned as IPv4-mapped IPv6 addresses. |
188 | For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1. | 192 | For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1. |