Results 1 to 2 of 2
- 11-14-2008, 06:26 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 1
- Rep Power
- 0
Send Datagram packet to root server
Hello programmers,
I'm new here. I want to build a java program to get the IP of the given website without using gethostbyname(). I want build a dns resolver using java programs that work as dig command in linux. That is i want get the ip of the TLD from the given root server and then continuing the process get the IP of the given website.
I have to use datagrampacket and the UDP connection between user and the root server.
I have seen such procedure in C++, building the DNS_HEADER PACKET and do the sendto() function to get the IP address.
I want build the exactly dns packet and then send this to root server and also want the response.
Please help me :
1. How to build DNS_Header packet in java?
2. How to send the this packet to root server?
3. How to extract the response packet to get the IP?
4. Any link or any sample code would be helpful?
Please help me... any sample code would be really helpful.
JamminLast edited by jammin; 11-14-2008 at 06:32 AM.
- 11-15-2008, 12:23 AM #2
Similar Threads
-
Can't Stop packet from transmitting and unable to understand packet format
By khajalid in forum NetworkingReplies: 2Last Post: 12-22-2008, 03:05 AM -
Datagram Client and Server, client timer question
By saru88 in forum NetworkingReplies: 1Last Post: 10-05-2008, 03:12 PM -
how can server send messages every 5 min?
By dim_ath in forum NetworkingReplies: 7Last Post: 01-10-2008, 03:59 PM -
send/read int in a client/server app
By dim_ath in forum New To JavaReplies: 2Last Post: 01-03-2008, 01:03 PM -
how to send .jar files client to server
By gobinathm in forum NetworkingReplies: 1Last Post: 12-25-2007, 04:05 AM


LinkBack URL
About LinkBacks

Bookmarks