Simulating a DNS scenario in Linux?

oslon

Member
Joined
Oct 15, 2023
Messages
38
Reaction score
6
Credits
406
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.
 


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

Staff online

Members online


Top