The Artima Developer Community
Sponsored Link

Java Answers Forum
DNS : Route Through , 'RT' : java Network Programming

1 reply on 1 page. Most recent reply: Jan 2, 2005 10:21 PM by nakulmadaan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
nakulmadaan

Posts: 3
Nickname: o08
Registered: Dec, 2004

DNS : Route Through , 'RT' : java Network Programming Posted: Dec 29, 2004 9:31 PM
Reply to this message Reply
Advertisement
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


nakulmadaan

Posts: 3
Nickname: o08
Registered: Dec, 2004

TRACERT Posted: Jan 2, 2005 10:21 PM
Reply to this message Reply
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 :)

Flat View: This topic has 1 reply on 1 page
Topic: Jarring an Application for a Double Click Previous Topic   Next Topic Topic: Package problems...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use