Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2004, 01: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


 
Old January 3rd, 2005, 02: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 :)

 
Old March 16th, 2005, 11: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




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 07: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 12:02 PM
secondary DNS vs. second primary DNS gangu1971 Linux 1 March 1st, 2005 10:40 AM
# DELETED Record Access RT Jim6560 Access 0 March 21st, 2004 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.