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.
Question
Options
- A/etc/hosts
- B/etc/nsswitch.conf
- C/etc/lmhosts
- D/etc/man
- E/etc/dns.conf
How the community answered
(37 responses)- A92% (34)
- C3% (1)
- D5% (2)
Why each option
Name resolution on Linux systems relies on several configuration files to determine how hostnames are mapped to IP addresses.
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.
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.
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.
The `/etc/man` directory typically contains configuration files or data for the `man` (manual) page system, and is unrelated to name resolution.
`/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
Community Discussion
No community discussion yet for this question.