Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > System > Networking

    whois

    Download button

    No screenshots available
    Downloads: 745  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steve Friedl | More programs
    GPL / FREE
    June 15th, 2008, 13:07 GMT
    ROOT / System / Networking

     Read user reviews (0)  Refer to a friend  Subscribe

    whois description

    whois is a frontend to Internet Whois.

    whois is a frontend to Internet Whois.

    The traditional whois tool can query a single remote server and only research a single kind of data. This is a useful starting point, but many whois queries actually require multiple queries of different servers. We've created a front end in perl that is very smart about knowing who and how to ask, plus a small modification to the standard fwhois.c tool to support it.

    Running the program

    This is a command-line utility, and it can be given an IP address or a domain name. It looks at the parameter to make its best guess as to the appropriate registry, and sends off its query. By itself this would be helpful enough, but it also scans the response to see if a second query is in order.

    For instance, standard queries to the Internic's domain name system return only the most basic information that does not include the domain's owner:

    $ fwhois unixwiz.net@whois.internic.net
    [whois.internic.net]

    Domain Name: UNIXWIZ.NET
    Registrar: NETWORK SOLUTIONS, INC.
    Whois Server: whois.networksolutions.com
    Referral URL: www.networksolutions.com
    Name Server: NS.DRAPERS.COM
    Name Server: LINUX.MTNDEW.COM
    Name Server: A.UNIXWIZ.NET
    Updated Date: 09-jan-2001


    Here, we've stripped off some of the additional verbiage and see that this only shows which registrar - whois.networksolutions.com - has the more detailed information. Normally this would require a second manual query, but our program knows how to parse this output and will make a second query to the referred location.

    In addition to following the registration referrals, we also strip off the extraneous messages from the output when we recognize it. This is an imperfect science because the matches must be made literally in the code, but we do try to keep up with this.

    But for domain names that aren't dot-com or dot-net and the like, we must check other registries. For instance, .se (Sweden) has a registry at whois.nic-se.se, and that server must be queried instead of rwhois.internic.net. Though our program does not have a fully comprehensive list of country-code servers, it has most of the important ones, and we update the code when we trip across them. Note that not all countries have 'whois' servers.

    When researching IP addresses, it gets a bit more tricky. The American Registry of Internet Numbers (ARIN) maintains the database if IP address allocations in the United States and other areas, but not for the entire world. Other regions have their own registries, such as the Asia/Pacific and European regions.

    The perl frontend knows where most of the major non-ARIN blocks are located and will query them as needed.

    Compile:

    cc fwhois.c -o fwhois
    chmod +x fwhois

    Usage: fwhois user[@< whois.server > [:portno] ]

    Product's homepage

      


    TAGS:

    Internet Whois | domain lookup | whois frontend | Internet | whois | frontend

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM