Exam 220-1101 Topic 4 Question 718 Discussion

Actual exam question for CompTIA's 220-1101 exam
Question #: 718
Topic #: 4
A user with a custom hosts file is having difficulty connecting to a locally hosted site on a small office network. The technician cannot ping the server hostname from the user's computer. Which of the following should the technician ensure on the server?

Suggested Answer: A Vote an answer

Explanation
A custom hosts file is a file that maps hostnames to IP addresses, allowing the user to access websites or servers by their names instead of their numerical addresses. For example, a user can add a line like 192.168.1.100 myserver.local to their hosts file and then access the server by typing myserver.local in their browser. However, this method only works if the IP address of the server does not change. If the server is configured with a dynamic IP address, which means it can be assigned a different IP address by the network router or DHCP server, then the hosts file entry will become invalid and the user will not be able to connect to the server by its hostname. Therefore, the technician should ensure that the server is configured with a static IP address, which means it has a fixed and permanent IP address that does not change. This way, the hosts file entry will always point to the correct IP address of the server and the user will be able to ping the server hostname from their computer.
References:
How to Add a Local DNS Lookup to Hosts File - Help Desk Geek1
Set Custom Domain Name for localhost Website in IIS - TutorialsTeacher.com2 The Official CompTIA A+ Core 1 Student Guide (Exam 220-1101) eBook, page 4-9

by Truda at Apr 27, 2025, 07:30 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10