Question

In: Computer Science

System Administration Linux/Unix This lab is for you to research and implement old school DNS for...

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

Solutions

Expert Solution

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.


Related Solutions

Pertaining to the Linux operating system, which is a variant of Unix, DISCUSS Topics that will...
Pertaining to the Linux operating system, which is a variant of Unix, DISCUSS Topics that will include things such as history, Linux kernel, and design principles.
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of...
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of mv command The mv command is more than just a wrapper around the rename system call. Write a version of mv that accepts two argument. The first argument must be the name of a file, and the second argument may be the name of a file or the name of a directory. If the destination is the name of a directory, then mv moves...
UNIX/LINUX LAB (1) Review the sample shell program (tryShell.c), and compile/run the program (tryShell) with the...
UNIX/LINUX LAB (1) Review the sample shell program (tryShell.c), and compile/run the program (tryShell) with the following commands, and at the end, use CTRL+C to terminate the program: ls ls -l tryShell* date whoami hostname uname -a ctrl+C    (2) Run the program (tryShell) with "time -p" with a few commands: time -p ./tryShell (3) Edit the program (tryShell.c) so that it will exit (terminate the program) when the input command string is "exit" try shell.c code at bottom //////////// #include...
We are interested in the implementation of a Unix/Linux system utility for the concatenation of a list of n text files.
Write in C We are interested in the implementation of a Unix/Linux system utility for the concatenation of a list of n text files. In order to do that we are going to consider the following syntax below where the concatenation of n text files are written in the output file all.txt or on the console if the output text file is not specified.       $./mycat file_1.txt file_2.txt   . . .   file_n.txt > all.txt
Research 10 current flavors of Unix and Linux available today. Review who uses those flavors and...
Research 10 current flavors of Unix and Linux available today. Review who uses those flavors and for what purpose. Consider reviewing both enterprise, Windows-like, and home flavors. Complete the following table. Keep your product to two pages. ALL SOURCES MUST BE CITED PER THE RUBRIC OR POINTS WILL BE DEDUCTED. This extends to any information that YOU did not compose.
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a file “/home/alice/foo”, which is owned by an ordinary user Alice. You need to give a permission to read a this file to an ordinary user Bob, but no one else (of course, you as superuser will be able to read it too). Explain how you will do it. Note: You do not have to provide specific commands, just a short description will suffice. [Limitations...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a file “/home/alice/foo”, which is owned by an ordinary user Alice. You need to give a permission to read a this file to an ordinary user Bob, but no one else (of course, you as superuser will be able to read it too). Explain how you will do it. Note: You do not have to provide specific commands, just a short description will suffice.
UNIX/LINUX LAB   (1) Compile hello.c program: gcc hello.c -o hello (2) Compile hello.c program with -static...
UNIX/LINUX LAB   (1) Compile hello.c program: gcc hello.c -o hello (2) Compile hello.c program with -static option: gcc -static hello.c -o hello1 (3) Use size command to see the memory layout of these two programs (hello and hello1). (4) Write a brief summary of what you have noted here. Submit the session history (log) of this activity and a brief summary. hello.c program bottom //////////// #include <stdio.h> #include <stdlib.h> int main() { printf("Hello World\n"); // waw hello Richard and ok...
lab of operating system: you should do this on linux server its mandatory please show your...
lab of operating system: you should do this on linux server its mandatory please show your work by taking screenshot and show all the commands performed and show the result. PROBLEM 1: Create a file and name it f1 • Cerate a directory and name it d1 • Move f1 to d1 • Create a directory and name it d2 • Move d1 to d2 • Check if d1 is inside d2 • Check if f1 is inside d1 •...
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would...
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would type to... Quit the vi editor and save any changes? 7. C language source files, by convention, have the suffix ".c". The associated "header" files have the suffix ".h". What is the command to perform the following task: List all the C source and C header files in the current directory. [Hidden files may remain hidden.] 8. C language source files, by convention, have...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT