Just a couple of things off the top of my head. I've once did this in Java but I did it slightly different. First you should know that Java does not support ICMP. I had to implement my ping packet as a UDP packet. The second thing is that you don't really want to ping port 53. Go for port 7 which is the echo port which was designed to echo stuff back at you anyway. What happens when you don't have a daemon listening on port 53 ? You will not get a reply back and you will be thinking that the machine is dead even though its up it just doesn't know what to do with your packet.
-Pete On Mon, 29 Oct 2001 [EMAIL PROTECTED] wrote: > Pointers only... I think there are several pointers to appropriate RFCs at the > back of the DNS-HOWTO. > > A Java ping using the DNS port? Sounds very odd. Why port 53 rather than, say, > 80? > > --Doc Savage > Fairview Heights, IL > > > hi all.. > > am trying to simulate an improved ping utility using java for which i need to > know the > protocol commands for port 53(my DNS port) > > > > can anyone F1 me -- Peter Vertes [EMAIL PROTECTED] "Friends don't let friends use Windows" _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list