Write a server and client programs to emulate a simple DNS application using a port number 3456 for the…

Write a server and client programs to emulate a simple DNS application using a port number 3456 for the…

Question:

 

Transcribed Image Text:

Write a server and client programs to emulate a simple DNS application using a port
number 3456 for the application on the server side while port number 9876 for the
client side. The application of the client should send the website name as a text and
receive the associated IP address as a text as well. Implement the application using
TCP protocol
For example the IP address for
www.stc.com.sa is 212.118.156.22
www.ksu.edu.sa is 52.174.29.241
Make sure to submit two java files, the first file is named DNS_TCP_client.java and the second file is
named DNS_TCP_server.java

Expert Answer:

Answer rating: 100% (QA)

Below are the Java code snippets for a simple DNS client server application using TCP Please create two separate files named DNS TCP Client java and D
View the full answer