=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/nc/nc.1,v retrieving revision 1.34 retrieving revision 1.35 diff -c -r1.34 -r1.35 *** src/usr.bin/nc/nc.1 2004/12/31 15:23:31 1.34 --- src/usr.bin/nc/nc.1 2005/01/07 10:07:35 1.35 *************** *** 1,4 **** ! .\" $OpenBSD: nc.1,v 1.34 2004/12/31 15:23:31 jmc Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. --- 1,4 ---- ! .\" $OpenBSD: nc.1,v 1.35 2005/01/07 10:07:35 jmc Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. *************** *** 65,73 **** .Xr telnet 1 does with some. .Pp - Destination ports can be single integers or ranges. - Ranges are in the form nn-mm. - .Pp Common uses include: .Pp .Bl -bullet -offset indent -compact --- 65,70 ---- *************** *** 124,129 **** --- 121,129 ---- or .Fl z options. + Additionally, the + .Fl w + option is ignored. .It Fl n Do not do any DNS or service lookups on any specified addresses, hostnames or ports. *************** *** 211,216 **** --- 211,237 ---- .Fl l option. .El + .Pp + .Ar hostname + can be a numerical IP address or a symbolic hostname + (unless the + .Fl n + option is given). + In general, a hostname must be specified, + unless the + .Fl l + option is given + (in which case the local host is used). + .Pp + .Ar port Ns Op Ar s + can be single integers or ranges. + Ranges are in the form nn-mm. + In general, + a destination port must be specified, + unless the + .Fl U + option is given + (in which case a socket must be specified). .Sh CLIENT/SERVER MODEL It is quite simple to build a very basic client/server model using .Nm .