From: <cra...@ya...> - 2003-04-10 10:22:33
|
Hi, Thanks for your answer. I've made changes you've told me. And I've got no more exception. But I've got no result either. In fact I've got result =2 (TRY_AGAIN). I've tried many times and always got the same result. Here is my code: [code on] public static void dnslookup() throws UnknownHostException { Lookup testl = null; Record[] records = null; try { testl = new Lookup("yahoo.com", Type.MX); records = testl.run(); } catch (TextParseException e) { System.out.println(e);} System.out.println("result= " + testl.getResult()); if (records != null) { Record record; for (int i = 0; i < records.length; i++) { record = records[i]; System.out.println("record= " + record.getName()); } } System.out.println("it's over");} [code off] How can I know if my system is configured correctly? Geo. --------------------------------- Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Yahoo! Mail |