How to do a Whois command

Discussion in 'iOS Programming' started by Pixxa, Aug 16, 2009.

  1. Pixxa macrumors newbie

    Aug 14, 2009
    Hi, because I couldn't find any answers or directions im posting this thread with my question here.

    Im trying to make an application for myself just to learn from it. I know there are other applications doing the same but I want to write it myself. Its a app which would me allow to do a easy WHOIS lookup of domain names but having troubles to figure out how to do the WHOIS query.
    Does anyone here knows how to solve this? Please let me know.

  2. Guiyon macrumors 6502a

    Mar 19, 2008
    North Shore, MA
    Check out RFC 3912. You will need to do some TCP socket work in order to actually make the query.
  3. Pixxa thread starter macrumors newbie

    Aug 14, 2009
    Thx! This puts me in the right direction. One question: Can I send the domain names in clear text by a TCP connection on port 43?
  4. jeremyapp macrumors newbie

    Apr 30, 2008
    You could always set up a server to do the WHOIS lookup and return the response in an XML format. Then have the iPhone parse that, eliminating the need to do anything beside make a simple request from the phone. Then, just parse the results using NSXMLParser.

Share This Page