summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet/main.c
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1998-12-14 22:40:39 +0000
committerbillf <billf@FreeBSD.org>1998-12-14 22:40:39 +0000
commitcf6ada6c38a7f43c01a80384974b5bb169822f95 (patch)
treebe073a0ef0de6ea55e2fd7c63796a6d96d49b11c /usr.bin/telnet/main.c
parent3695233d550885612a33b0c0e24656922f1610ad (diff)
downloadFreeBSD-src-cf6ada6c38a7f43c01a80384974b5bb169822f95.zip
FreeBSD-src-cf6ada6c38a7f43c01a80384974b5bb169822f95.tar.gz
Add "-N" option to supress reverse name lookup.
This comes in really handy when you're telneting the broken DNS server by IP. PR: bin/8698
Diffstat (limited to 'usr.bin/telnet/main.c')
-rw-r--r--usr.bin/telnet/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/telnet/main.c b/usr.bin/telnet/main.c
index 3c4d8df..7f7c9ff 100644
--- a/usr.bin/telnet/main.c
+++ b/usr.bin/telnet/main.c
@@ -135,7 +135,7 @@ main(argc, argv)
rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE;
autologin = -1;
- while ((ch = getopt(argc, argv, "8EKLS:X:acde:fFk:l:n:rt:x")) != -1) {
+ while ((ch = getopt(argc, argv, "8EKLNS:X:acde:fFk:l:n:rt:x")) != -1) {
switch(ch) {
case '8':
eight = 3; /* binary output and input */
@@ -151,6 +151,9 @@ main(argc, argv)
case 'L':
eight |= 2; /* binary output only */
break;
+ case 'N':
+ doaddrlookup = 0;
+ break;
case 'S':
{
#ifdef HAS_GETTOS
OpenPOWER on IntegriCloud