-.\" $OpenBSD: socket.2,v 1.39 2015/02/28 21:51:57 bentley Exp $
+.\" $OpenBSD: socket.2,v 1.40 2015/10/20 18:11:53 deraadt Exp $
.\" $NetBSD: socket.2,v 1.5 1995/02/27 12:37:53 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)socket.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: February 28 2015 $
+.Dd $Mdocdate: October 20 2015 $
.Dt SOCKET 2
.Os
.Sh NAME
Set close-on-exec flag on the new descriptor.
.It SOCK_NONBLOCK
Set non-blocking I/O mode on the new socket.
+.It SOCK_DNS
+For domains
+.Dv AF_INET
+or
+.Dv AF_INET6 ,
+only allow
+.Xr connect 2 ,
+.Xr sendto 2 ,
+or
+.Xr sendmsg 2
+to the DNS port (typically 53).
.El
.Pp
The