nerdexam
CompTIA

220-1102 · Question #854

A technician needs to override DNS and map IP addresses and URLs to different locations. Which of the following should the technician do?

The correct answer is B. Edit the hosts file. To locally override DNS resolution and map specific IP addresses to URLs, a technician should edit the hosts file on the affected system. This file takes precedence over DNS for local lookups.

Operating Systems

Question

A technician needs to override DNS and map IP addresses and URLs to different locations. Which of the following should the technician do?

Options

  • AInstall signal repeaters.
  • BEdit the hosts file.
  • CConfigure the firewall.
  • DEnable port forwarding.

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    94% (34)
  • D
    3% (1)

Why each option

To locally override DNS resolution and map specific IP addresses to URLs, a technician should edit the hosts file on the affected system. This file takes precedence over DNS for local lookups.

AInstall signal repeaters.

Installing signal repeaters is used to extend the range of a wireless signal, which has no relation to mapping IP addresses to URLs or overriding DNS.

BEdit the hosts file.Correct

The hosts file is a local text file that operating systems use to map hostnames to IP addresses. Entries in this file take precedence over DNS queries for the specified hostnames, allowing a technician to override standard DNS resolution.

CConfigure the firewall.

Configuring a firewall primarily involves controlling network traffic flow, permitting or denying connections based on rules, not overriding DNS resolution locally.

DEnable port forwarding.

Enabling port forwarding redirects incoming network traffic from one port to another port or IP address, which is unrelated to locally mapping hostnames to IP addresses.

Concept tested: Local DNS resolution override (hosts file)

Source: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/create-static-mapping-hosts-file

Topics

#hosts file#DNS override#local name resolution

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice