summaryrefslogtreecommitdiff
path: root/usr.bin/nc
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2019-10-24 17:27:09 +0000
committerkn <kn@cvs.openbsd.org>2019-10-24 17:27:09 +0000
commite6f81c82cb64bd9b0ef25aaa672a5b8f67aa9f05 (patch)
tree7b99923971248247318fca1c72cea6974ef81d67 /usr.bin/nc
parent400f904e28a13cddc73110058d18d870f578c0f0 (diff)
Service names are still resolved with -n
Just like pfctl(8)'s -N, this flag only avoid DNS; "nc -vz ::1 socks" still works. Fix documentation by copying pfctl's wording. OK deraadt
Diffstat (limited to 'usr.bin/nc')
-rw-r--r--usr.bin/nc/nc.18
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/nc/nc.1 b/usr.bin/nc/nc.1
index 6bdfe4f9041..746a0559443 100644
--- a/usr.bin/nc/nc.1
+++ b/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nc.1,v 1.93 2018/12/27 17:45:36 jmc Exp $
+.\" $OpenBSD: nc.1,v 1.94 2019/10/24 17:27:08 kn Exp $
.\"
.\" Copyright (c) 1996 David Sacerdote
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 27 2018 $
+.Dd $Mdocdate: October 24 2019 $
.Dt NC 1
.Os
.Sh NAME
@@ -192,8 +192,8 @@ Ask the kernel to drop incoming packets whose TTL / hop limit is under
the network socket after EOF on the input.
Some servers require this to finish their work.
.It Fl n
-Do not do any DNS or service lookups on any specified addresses,
-hostnames or ports.
+Do not perform domain name resolution.
+If a name cannot be resolved without DNS, an error will be reported.
.It Fl O Ar length
Specify the size of the TCP send buffer.
.It Fl o Ar staplefile