Question: Write a server and client programs to emulate a simple DNS application using a port number 3456 for the application on the server side
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
Step by Step Solution
There are 3 Steps involved in it
Below are the Java code snippets for a simple DNS clientserver application using TCP Please create two separate files named DNSTCPClientjava and DNSTC... View full answer
Get step-by-step solutions from verified subject matter experts
