summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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.