Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 30th, 2004, 12:44 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nakulmadaan
Default DNS , Route through, RT

IS THERE ANY PARALLEL FUNTCION FOR DIG IN JAVA.

 "RouteThrough", "RT", TYPE_RT:: I tried this in java but i am getting this error at

run time "ERROR - DNS Error: Unknown resource record type 'RT' "

 It performs DNS lookups and displays the answers that are returned from the name

server(s) that were queried.

IS THERE ANY OTHER WAY TO INTEROGATE ROOT DNS SERVERS.

THANKS


Reply With Quote
  #2 (permalink)  
Old January 3rd, 2005, 01:23 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nakulmadaan
Default

i am trying to interrogate root DNS servers, using " TRACERT " but after going to first hop i am getting " Request timed out "

please help. :)

code is as follows




import java.net.*;
import java.io.*;

class Whois extends Thread
{
 public String traceCmdUnix = "tracert -h 10 ;
 private StringBuffer result = null;


  private void pingCmd (String command)
 {
  result = new StringBuffer ();
  try {
   Process p;
   p = Runtime.getRuntime().exec(command);
   readResult(p.getInputStream());
   p.destroy();
  }
  catch (Exception e) {
    e.printStackTrace();
  }
 }

 private void readResult (InputStream in)
 {
  String line = null;
  BufferedReader br = new BufferedReader(new InputStreamReader(in));
  try {

   while (!this.isInterrupted() &&
    (line = br.readLine()) != null)
   {
    //this.doResultLine(line+"\n");
    System.out.println(line);
   }
  }
  catch (IOException e) {
    e.printStackTrace();
  }
  finally {
   try {
    br.close();
   }
   catch (IOException e) {
   }
  }
  if (this.isInterrupted())
   System.out.println("*** Canceld ***");
 }
  public static void main (String args[]) throws Exception
  {
   Whois MyObj = new Whois();
   MyObj.traceCmdUnix = MyObj.traceCmdUnix + " " + "www.yahoo.com" ;
   MyObj.pingCmd(MyObj.traceCmdUnix);
  }


}


OUTPUT:----->
C:\>tracert -d 5 -w 600 www.yahoo.com

Tracing route to www.yahoo.akadns.net [68.142.226.39]
over a maximum of 30 hops:

  1 <10 ms <10 ms <10 ms 10.129.210.100
  2 * * * Request timed out.
  3 * * * Request timed out.
  4 * * * Request timed out.
  5 * * * Request timed out.
  6 * * * Request timed out.
  7 * * * Request timed out.
  8 * * * Request timed out.
  9 * * * Request timed out.
 10 * * * Request timed out.

plz help

Thanks :)

Reply With Quote
  #3 (permalink)  
Old March 16th, 2005, 10:41 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

See reply in other thread (tracert)

Cheers

--
Don't Stand on your head - you'll get footprints in your hair. http://www.charlieharvey.org.uk
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
no route found "/\\look\\at" with {:method=>:get} cazalot BOOK: Beginning Ruby on Rails 2 January 3rd, 2008 06:27 AM
How to set default format for crystal report as RT shikha09 BOOK: Professional Crystal Reports for VS.NET 0 May 29th, 2007 01:23 AM
Changing from DNS to DNS less connection dudeshouse Classic ASP Databases 4 February 7th, 2007 11:02 AM
secondary DNS vs. second primary DNS gangu1971 Linux 1 March 1st, 2005 09:40 AM
# DELETED Record Access RT Jim6560 Access 0 March 21st, 2004 12:06 PM



All times are GMT -4. The time now is 11:38 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.