ممكن المساعدة بالبرنامج التالي ضروري جدا........................
Project Description Write a simple client /server program based on socket programming concept. In this project we will build a server that will work as a DNS server, where the client will send to the DNS server the host name and the server will reply with the IP address. You may use either TCP or UDP socket In this project the process is as follows: 1. A Client reads a line which is the host name from its standard input and sends the line out its socket to the server. 2. The server reads a line from its socket. 3. The server will search a database file that contains a table of hostnames and IP addresses. 4. The server will reply with the related IP address or statement says “invalid host name” if the host name does not exist. 5. The client reads the IP address line through its socket and prints the line on its standard output. Another scenario that is also required is the registration of an IP with a hostname: 1. The client will read a host name and an IP address from its standard input. 2. The user will press a button called “register” that will send to the server the host name and the IP address. 3. The server will read the host name and the IP address. 4. The server will add this entry in the database. 5. The server will send an acknowledgment to the client that “the name was registered”.


