package scanwww;

/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:
 * @author
 * @version 1.0
 */

import java.net.* ;

public class ScanWww {


  public static void main(String[] args)
  {

    CharSeqEnum cse = new CharSeqEnum("aa") ;
    String s = cse.nextCharSeq() ;
    while (s!=null )
    {
       String t = "www." + s + ".com" ;
       try
       {
          InetAddress ia = InetAddress.getByName(t) ;
          System.out.println( t+" "+ia.getHostAddress() ) ;

       }
       catch ( java.net.UnknownHostException uhe ) {
          //System.out.println("Hostname unknown: "+t );
       } ;
       s = cse.nextCharSeq() ;
    }

  }
}