summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/resolver.3
diff options
context:
space:
mode:
authorderaadt <>2015-12-16 16:32:30 +0000
committerderaadt <>2015-12-16 16:32:30 +0000
commit65015706aa88135b196fdb07536e39d260511c45 (patch)
treeaa88ef26871b6a3768c600c6d6362ae5ca66f931 /src/lib/libc/net/resolver.3
parentfafb823cae6fc42ab41957474dc933bd3a103115 (diff)
downloadopenbsd-65015706aa88135b196fdb07536e39d260511c45.tar.gz
openbsd-65015706aa88135b196fdb07536e39d260511c45.tar.bz2
openbsd-65015706aa88135b196fdb07536e39d260511c45.zip
Remove support for HOSTALIASES from the resolver. This "open and parse
any file indicated by an environment variable" feature inside the resolver is incompatible with what pledge "dns" is trying to be. It is a misguided "feature" added way back in history which almost noone uses, but everyone has to assume the risk from. ok eric florian kettenis
Diffstat (limited to 'src/lib/libc/net/resolver.3')
-rw-r--r--src/lib/libc/net/resolver.311
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libc/net/resolver.3 b/src/lib/libc/net/resolver.3
index 7dae1c7e65..db7400df9b 100644
--- a/src/lib/libc/net/resolver.3
+++ b/src/lib/libc/net/resolver.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: resolver.3,v 1.31 2015/11/10 23:48:18 jmc Exp $ 1.\" $OpenBSD: resolver.3,v 1.32 2015/12/16 16:32:30 deraadt 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: November 10 2015 $ 30.Dd $Mdocdate: December 16 2015 $
31.Dt RES_INIT 3 31.Dt RES_INIT 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -171,12 +171,9 @@ to be equal to the server's address.
171Do not check if the query section of the reply packet 171Do not check if the query section of the reply packet
172is equal to that of the query packet. 172is equal to that of the query packet.
173.It Dv RES_NOALIASES 173.It Dv RES_NOALIASES
174Turn off the 174(In the past, this turned off the legacy
175.Ev HOSTALIASES 175.Ev HOSTALIASES
176feature. 176feature).
177See
178.Xr hostname 7
179for more information.
180.It Dv RES_USE_INET6 177.It Dv RES_USE_INET6
181Enables support for IPv6-only applications. 178Enables support for IPv6-only applications.
182This causes IPv4 addresses to be returned as an IPv4 mapped address. 179This causes IPv4 addresses to be returned as an IPv4 mapped address.