
March 17th, 2004, 01:08 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
help please!!!
i need some help badly. i am an undergrad and i need some help with my assignment - in C (UNIX env).
"Write a DNS client and a DNS server. The client should accept two command line parameters, the first is the name (or IP address) of your DNS server, second is a hostname. Client should use a UDP DNS request to find the IP address of the hostname listed as the second command line parameter. Create your own resolv.conf to allow the client to know about your own DNS server.
Use only UDP. If your server responds with a message that indicates the reply was truncated, you do not need to use TCP to retry the query - just print out a message indicating that the response was truncated.
Your client must work even if the server refuses to provide recursion. In this situation the server should send back a list of other (DNS) name servers who can answer the question - your program should ask one of the name servers for the answer. For this part, the default name servers available in our campus must be queried.
You client should print out the answer (the IP address of the hostname indicated on the command line), it does not need to print out other information (you don't need to print out all the resource records sent by the server).
The DNS server should accept the queries from your client and send back the resource records available in its DNS database to the client, which shall be accessible to the client through hostent structure. Make your DNS server a Daemon Process. "
I am a newbie in network programming. So I really need some help with this. Can someone please tell me how to begin and what to do???
|