Simulating a DNS scenario in Linux?

oslon

Member
Joined
Oct 15, 2023
Messages
40
Reaction score
6
Credits
424
The computer science department at purdue university chose to place the following type A resource record entry in its domain name server.
Code:
localhost.cs.purdue.edu 127.0.0.1
Explain what will happen if a remote site tries to ping a machine with domain name
Code:
localhost.cs.purdue.edu
.

How do I simulate this in linux?

My guess:

- Go to machine 1's /etc/hosts and type
Code:
localhost.cs.purdue.edu 127.0.0.1
- Go to machine 2's /etc/hosts and type
Code:
localhost.cs.purdue.edu 127.0.0.1
Then do ping from machine 2.
But I don't think this is the correct way of replicating the scenario in question above. HELP.
 


ik this looks so close like homework. But I am just trying to re-learn computer engineering concepts.
 

Members online


Top