Simulating a DNS scenario in Linux?

oslon

New Member
Joined
Oct 15, 2023
Messages
27
Reaction score
3
Credits
293
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.
 


arochester

Moderator
Staff member
Gold Supporter
Joined
Apr 25, 2017
Messages
1,838
Reaction score
1,482
Credits
4,434
Homework? Assignment?
 
OP
O

oslon

New Member
Joined
Oct 15, 2023
Messages
27
Reaction score
3
Credits
293
ik this looks so close like homework. But I am just trying to re-learn computer engineering concepts.
 

Members online


Latest posts

Top