Oh gosh ... sorry. Windows, right? Look wherever you have installed James, find the work\ directory, e.g.,
C:\james\work\james-1082411155789\SAR-INF\lib
and find dnsjava-1.6.2.jar. Copy it someplace convenient, e.g., C:\.
Adjust these accordingly:
c:\>path="c:\program files\j2sdk1.4.1\bin";%path%
c:\>javac -classpath .;c:\dnsjava-1.6.2.jar IP.java
c:\>java -cp .;c:\dnsjava-1.6.2.jar" IP www.deOliveira.dk.
When I run it, I get:
dnsjava finds www.deOliveira.dk. is at /80.62.45.38
dnsjava finds Host Name 0x503e2d26.boanxx8.adsl-dhcp.tele.dk
Java finds www.deOliveira.dk. is at www.deOliveira.dk./80.62.45.38
Java finds Host Name www.deOliveira.dk.
I added an extra couple of print messages. I also sent Brian Wellington a
note about the difference.
--- Noel
IP.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
