Write a TCP client program in C or Java that implements the "whois"
service. (Note: not the more advanced rwhois service described in RFC
2167.) Find out from the IANA and IETF web sites (both reachable through
the IETF), respectively, what port is
used by whois and what RFC describes it. (Be careful: there's also
whois++, which is not what you are looking for...)
Your program takes two arguments: the name of the whois server
and the search string and prints the information returned by the server.
Servers include ds.internic.net.