From 65015706aa88135b196fdb07536e39d260511c45 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 16 Dec 2015 16:32:30 +0000 Subject: 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 --- src/lib/libc/net/gethostbyname.3 | 10 ++-------- src/lib/libc/net/resolver.3 | 11 ++++------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/lib/libc/net/gethostbyname.3 b/src/lib/libc/net/gethostbyname.3 index 304f314099..f8c4891c68 100644 --- a/src/lib/libc/net/gethostbyname.3 +++ b/src/lib/libc/net/gethostbyname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gethostbyname.3,v 1.27 2014/08/23 07:25:54 jmc Exp $ +.\" $OpenBSD: gethostbyname.3,v 1.28 2015/12/16 16:32:30 deraadt Exp $ .\" .\" Copyright (c) 1983, 1987, 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 23 2014 $ +.Dd $Mdocdate: December 16 2015 $ .Dt GETHOSTBYNAME 3 .Os .Sh NAME @@ -171,12 +171,6 @@ The contents of the error message is the same as that returned by with argument .Fa h_errno . .Sh ENVIRONMENT -.Bl -tag -width HOSTALIASES -.It HOSTALIASES -A file containing local host aliases. -See -.Xr hostname 7 -for more information. .It RES_OPTIONS A list of options to override the resolver's internal defaults. See 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 @@ -.\" $OpenBSD: resolver.3,v 1.31 2015/11/10 23:48:18 jmc Exp $ +.\" $OpenBSD: resolver.3,v 1.32 2015/12/16 16:32:30 deraadt 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: November 10 2015 $ +.Dd $Mdocdate: December 16 2015 $ .Dt RES_INIT 3 .Os .Sh NAME @@ -171,12 +171,9 @@ to be equal to the server's address. Do not check if the query section of the reply packet is equal to that of the query packet. .It Dv RES_NOALIASES -Turn off the +(In the past, this turned off the legacy .Ev HOSTALIASES -feature. -See -.Xr hostname 7 -for more information. +feature). .It Dv RES_USE_INET6 Enables support for IPv6-only applications. This causes IPv4 addresses to be returned as an IPv4 mapped address. -- cgit v1.2.3-55-g6feb