ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 111 - XK0-005 discussion

Report
Export

A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

The administrator runs grep db.example.com /etc/hosts and receives the following output:

Given this scenario, which of the following should the administrator do to address this issue?

A.
Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
Answers
A.
Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
B.
Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
Answers
B.
Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
C.
Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
Answers
C.
Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
D.
Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.
Answers
D.
Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.
Suggested answer: D

Explanation:

The administrator should modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88 to address the issue. The /etc/hosts file is a file that maps hostnames to IP addresses on Linux systems. The file can be used to override the DNS resolution and provide a local lookup for hostnames. The dig output shows that the DNS returns the IP address 192.168.20.88 for the hostname db.example.com, which is the correct IP address of the system. The grep output shows that the /etc/hosts file contains an entry for db.example.com with the IP address 192.168.20.89, which is the wrong IP address of the system. This can cause a conflict and prevent the system from being accessed by the hostname. The administrator should modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88, which is the correct IP address of the system. This will align the /etc/hosts file with the DNS and allow the system to be accessed by the hostname. The administrator should modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88 to address the issue. This is the correct answer to the question. The other options are incorrect because they either do not modify the /etc/hosts file (modify the /etc/network file and change the db.example.com entry to 192.168.20.88 or modify the /etc/network file and change the db.example.com entry to 192.168.20.89) or do not change the IP address to the correct one (modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Managing Network Connections, page 378.

asked 02/10/2024
Fathy Refay
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first