nerdexam
CompTIA

LX0-104 · Question #450

Which of these are name resolution related files? (Choose Two)

The correct answer is A. /etc/hosts B. /etc/nsswitch.conf. Name resolution on Linux systems relies on several configuration files to determine how hostnames are mapped to IP addresses.

Networking Fundamentals

Question

Which of these are name resolution related files? (Choose Two)

Options

  • A/etc/hosts
  • B/etc/nsswitch.conf
  • C/etc/lmhosts
  • D/etc/man
  • E/etc/dns.conf

How the community answered

(37 responses)
  • A
    92% (34)
  • C
    3% (1)
  • D
    5% (2)

Why each option

Name resolution on Linux systems relies on several configuration files to determine how hostnames are mapped to IP addresses.

A/etc/hostsCorrect

The `/etc/hosts` file provides static hostname to IP address mappings, acting as a local lookup table that is often checked before DNS for name resolution.

B/etc/nsswitch.confCorrect

The `/etc/nsswitch.conf` file specifies the order in which different name services, such as `files` (referring to `/etc/hosts`) and `dns` (Domain Name System), are queried for various lookups, including hostname resolution.

C/etc/lmhosts

The `/etc/lmhosts` file is primarily used for NetBIOS name resolution, often in Samba environments, and is not a general-purpose name resolution file like `/etc/hosts` or `/etc/nsswitch.conf` for DNS-based or standard system hostname resolution.

D/etc/man

The `/etc/man` directory typically contains configuration files or data for the `man` (manual) page system, and is unrelated to name resolution.

E/etc/dns.conf

`/etc/dns.conf` is not a standard or commonly used configuration file for name resolution on Linux systems; DNS settings are typically managed via `/etc/resolv.conf` and `nsswitch.conf`.

Concept tested: Linux hostname resolution configuration files

Source: https://man7.org/linux/man-pages/man5/hosts.5.html

Topics

#name resolution#/etc/hosts#/etc/nsswitch.conf#DNS

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice