Write a server and client programs to emulate a simple DNS application using a port number...
Fantastic news! We've Found the answer you've been seeking!
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 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 clientserver application using TCP Please create two separate files named DNSTCPClientjava and DNSTC... View the full answer
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these programming questions
-
Assume ABC Inc. had the following sales data in 2025: Cost of goods sold = $856,000 Non-operating expenses = $31,000 Operating expenses = $92,000 Sales revenue = $1,219,000 Unrealized gains = $20,000...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The three way TCP handshake between sender and receiver A)requires a SYN packet from the sender to be answered by a SYN, ACKpacket from the recipeint which is followed by an ACK packet fromthe sender...
-
Which of the following statements is correct regarding a work sheet and the adjustment process? Adjusting journal entries are prepared from the Adjusted Trial Balance columns. Adjusting journal...
-
Calculate the zero-point energy of a harmonic oscillator consisting of a particle of mass 5.16 x 10-26kg and force constant 285 N m-1
-
Looking at the HLR/VLR database approach used in GSM - how does this architecture limit the scalability in terms of users, especially moving users?
-
A Pelton wheel is supplied with water from a lake at an elevation \(H\) above the turbine. The penstock that supplies the water to the wheel is of length \(\ell\), diameter \(D\), and friction factor...
-
The following information is extracted from the bank statement and the accounting records of the Sun Corporation for the month of July 2007: 1. Cash balance from books, July 31 .......... $1,967.35...
-
Switching from a business-to-consumer model to a business-to-business model would have a lot of moving parts. Our simulation is selling fully-built road and mountain bikes for casual and serious bike...
-
Should Best Buy focus on becoming a showroom for companies that lack their own physical retail outlets? What are the pros and cons of this approach?
-
To establish and implement an accounting system using information supplied in the case study of the Blue Surf. Required: 1. Set up a company on Xero using your name Blue Surf. 2. Create and submit a...
-
Simplify this square root: 20
-
Given that P(A)=1/3, P(B) = 1/2 and P(AIB) = 1/2: a. Find P(A n B). b. Find P(BIA). c. Find P(AUB). d. Are A and B independent? Why or why not? e. Are A and B mutually exclusive? Why or why not?
-
When 3 0 , 0 0 0 shares of $ 1 0 par - value common stock are issued at $ 3 0 per share, Paid - In Capital in Excess of Par, Common Stock is credited for:
-
You work for a nuclear research laboratory that is contemplating leasing a diagnostic scanner (leasing is a very common practice with expensive, high-tech equipment). The scanner costs $6,500,000 and...
-
Suppose that we are drilling an oil well. The drilling rig costs $1300 today, and in one year the well is either a success or a failure. The outcomes are equally likely. The discount rate is 4%. The...
-
Wendy Winter needs to determine whether the current warehouse system should be upgraded to a new system. The new system would require an initial cash outlay of $250,000. The current system could be...
-
Find a least expensive route, in monthly lease charges, between the pairs of computer centers in Exercise 11 using the lease charges given in Figure 2. a) Boston and Los Angeles b) New York and San...
-
Review the three categories of policy that are presented here. Enterprise information security policy (EISP): Developed within the context of the strategic IT plan, this sets the tone for the InfoSec...
-
Examine that the Chief Information Officer (CIO) is the senior technology officer although other titles such as vice president of information, VP of information technology, and VP of systems may also...
-
Stress to students that they should understand that many organizations realize that one of their most valuable assets is their data. Without data, an organization loses its record of transactions...
-
Birth weights in the United States are normally distributed with a mean (in grams) of 3420 g and a standard deviation of 495 g. If you graph this normal distribution, the area to the right of 4000 g...
-
Is the distribution of those digits a normal distribution? Why or why not?
-
Many states have lotteries that involve the random selection of digits 0, 1, 2, ,
Study smarter with the SolutionInn App