Problem

In this hands-on project, you view your host name as well as resolve host names and conf...

In this hands-on project, you view your host name as well as resolve host names and configure host name resolution.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type hostname and press Enter. What is your host name? Next, type cat /etc/sysconfig/network at the command prompt and press Enter. What host name is listed here? Why?

3. At the command prompt, type cat /etc/resolv.conf and press Enter. Do you have a DNS server configured?

4. At the command prompt, type less /etc/nsswitch.conf and press Enter. What method will applications use to resolve host names first? Second? Press q to quit the less utility.

5. Edit the /etc/hosts file with a text editor such as vi. Add a line to the bottom of the file that reads: 1.2.3.4 fakehost.fakedomain.com sample When finished, save your changes and quit the editor.

6. At the command prompt, type ping –c 5 server1 and press Enter. Was the name resolved correctly?

7. At the command prompt, type ping –c 5 localhost and press Enter. Was the name resolved correctly?

8. At the command prompt, type ping –c 5 fakehost.fakedomain.com and press Enter. Was the name resolved correctly? Was the ping command able to contact the host?

9. At the command prompt, type ping –c 5 sample and press Enter. Was the name resolved correctly? Was the ping command able to contact the host?

10. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 12