telnet – user interface to the TELNET protocol
telnet [-468EFKLNacdfruxy] [-S tos] [-X authtype] [-e escapechar] [-k realm] [-l user] [-n tracefile] [-s src_addr] [host [port]]
The telnet command is used to communicate with another host using the TELNET protocol. If telnet is invoked without the host argument, it enters command mode, indicated by its prompt (``telnet>’’). In this mode, it accepts and executes the commands listed below. If it is invoked with arguments, it performs an open command with those arguments.
The telnet commands allow you to communicate with a remote computer that is using the Telnet protocol. You can run telnet without parameters in order to enter the telnet context, indicated by the Telnet prompt (telnet>).
$ nslookup google.com Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: Name: google.com Address: 184.108.40.206
Now get the Non Authoritative Answer IP address.
telnet 220.127.116.11 80 Trying 18.104.22.168... Connected to maa03s31-in-f14.1e100.net. Escape character is '^]'.
Here 80 is the port number.