How do I query a Whois server using the Apache Commons Net library?
Author: Deron Eriksson
Description: This Java tutorial describes how to query a Whois server using the Apache Commons Net library.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 2.0 (Eclipse 3.3.0)

Page: < 1 2

(Continued from page 1)

The output of executing WhoisLookup is shown below:


Visit for more information about ABCNEWS.COM
<a href="">AboutUs: ABCNEWS.COM </a>

ABC, Inc.
   77 West 66th Street
   506 Second Ave. Suite 2100
   New York, NY 10023-6298

   Domain Name: ABCNEWS.COM

   Promote your business to millions of viewers for only $1 a month
   Learn how you can get an Enhanced Business Listing here for your domain name.
   Learn more at

   Administrative Contact, Technical Contact:		dns-ops@DIG.COM
      506 2ND AVE STE 2100
      SEATTLE, WA 98104-2300
      (206) 664-4000 fax: (206) 664-4009

   Record expires on 21-Apr-2008.
   Record created on 20-Apr-1995.
   Database last updated on 21-Jan-2008 18:15:27 EST.

   Domain servers in listed order:

Page: < 1 2