From cc296ed627856799a9677fa96ce42ce970107127 Mon Sep 17 00:00:00 2001 From: kn <> Date: Thu, 24 Oct 2019 17:27:08 +0000 Subject: 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 --- src/usr.bin/nc/nc.1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/usr.bin') diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 6bdfe4f904..746a055944 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/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 -- cgit v1.2.3-55-g6feb