Bear in mind that whois often returns false negatives, because it's a
huge security breach to allow random outsiders to skim your list of
email accounts. For instance, I believe most corporate email systems
refuse whois requests. You should probably try whois out on a sample
of your actual user base to see how many could have been validated
this way, and whether it's worth doing.

Rod McChesney, Korobra

Eytan Seidman wrote:
>
> Take a look at the followiing for a servlet that runs the whois command.
>
> http://www.2link.net/doc/Whois.txt
>
> The crux of the code that makes it happens is as follows
>
> try {
>         //Open a scoket to the whois server
>         Socket s = new Socket(WHOIS_SERVER, WHOIS_PORT);
>         BufferedReader sin = new BufferedReader(new
> InputStreamReader(s.getInputStream()));
>
>         //Send internice the data of what to lookup
>         PrintWriter sout = new PrintWriter(s.getOutputStream(), true);
>         sout.println(domain);
>
>         //Start getting the data back from teh Internic
>         while (true) {
>                 String line = sin.readLine();
>                 if (line != null)
>                 out.println(line);
>                     else
>                         break;
>         }
>                 s.close();
>             } catch (Throwable t) {
>                 out.println("Sorry, error occurred: ");
>                 out.println(t.toString());
>             }
>
> Hope this helps.
> Eytan
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Kathiresan, Vallikun
> > Sent: Tuesday, August 17, 1999 12:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Help on Email Validation
> >
> >
> > How do I do system commands in java? For example say I would like to use
> > "whois" unix command. In C we say system(whois), any suggestions for Java?
> >
> > Thanks
> >
> > -----Original Message-----
> > From: Eytan Seidman [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 17, 1999 9:50 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Help on Email Validation
> >
> >
> > One solution might be to take the their domain name and then send it to
> > Network soultiosn and see if itsis registered by running the
> > whois command.
> > Not sure if that will work 100% but you can give it a try.
> >
> > Eytan
> >
> > > -----Original Message-----
> > > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > Vallikun Kathiresan
> > > Sent: Tuesday, August 17, 1999 9:17 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Help on Email Validation
> > >
> > >
> > > I am using the SMTPClient to send email to myself when some one
> > > fills out a form. I would like to know how I can ensure their
> > > email address is correct becuase I do not send email back to them
> > > for a couple of days until their request is processed. ANY HELP
> > > IS GREATLY APPRECIATED
> > >
> > >
> > > Thanks
> > >
> > > __________________________________________________________________
> > > _________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > > in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources: http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to