In: Computer Science
System Administration Linux/Unix
This lab is for you to research and implement old school DNS for your virtualized environment
Currently, if you tried to ping your server01 by IP address (192.168.10.11), you would receive a response. If you tried to ping using its hostname "server01", it would result in "ping: hostname: Temporary failure in name resolution"
1) Research how and where to implement
2) Create the following entries:
192.168.10.1 router
192.168.10.11 SRV1
192.168.10.12 SRV2
192.168.10.13 client
3) Ensure these hostnames work from each VM and verify with screenshot(s).
A screenshot from each VM (except the router) should show the result of
ping router
ping srv1
ping srv2
ping client
As given in the question if you ping any server machine by IP
address then it work but if you try by giving hostname then you get
error.
We are getting this error because server name is missing from host
file. Important thing to note here is, The hosts file is a plain
text file that all operating systems use to translate hostnames
into IP addresses. Even windows use the same file.
This answers your first question.
Answer for Question 1) Research how and where to implement : you need to add entry in host file.
On Linux, you can find the hosts file under : /etc/hosts
This is simple text file you can open it using any text editor but
you may need permission to change this file and to save these
changes.
In this hosts file, each entry has its own line. The syntax is :
"IP address" hostname
Type the IP address, press the tab key or even space is fine, and
then type the hostname.
Answer for Question 2) in this question you need to create entry
for hostname router, SRV1, SRV2, client
here open that host file and add following entries.
192.168.10.1 router
192.168.10.11 SRV1
192.168.10.12 SRV2
192.168.10.13 client
Answer for Question 3) Ensure these hostnames work from each VM
and verify with screenshot(s).
We don't have these IP setup so you need to add above entries in
each VM then only you can see the result. The commands that are
given in the question ping router, ping srv1, ping srv2, ping
client
will only work on your lab machine because of these IP
addresses.