cert
cert-1
cert-2

Pass LPI 102-500 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
102-500 Exam - Verified By Experts
102-500 Premium Bundle
$29.98

102-500 Premium Bundle

$79.99
$109.97
  • Premium File 120 Questions & Answers. Last update: Nov 13, 2026
  • Training Course 126 Video Lectures
  • Study Guide 962 Pages
 
$109.97
$79.99
accept 15 downloads in last 7 days
block-screenshots
Purchase LPI 102-500 Exam Training Products Individually
LPI 102-500 Premium File
Premium File 120 Q&A
$76.99$69.99
LPI 102-500 Video Training Course
Training Course 126 Lectures
$21.99 $19.99
LPI 102-500 PDF Study Guide
Study Guide 962 Pages
$21.99 $19.99
LPI 102-500 Practice Test 52

Question 510

While verifying a Linux change request, an engineer finds: A workstation has conflicting static hostname and /etc/hosts entries, causing local name lookups to refer to the wrong node. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.

  1. Inspect `systemctl` service state, NetworkManager device management, /etc/systemd/network and active connection profiles alongside `ip` state.
  2. Set the intended persistent static hostname with `hostnamectl` or supported distribution settings and validate local host mapping separately.
  3. Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot.
  4. Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required.
  5. Assume the command `hostname newname` persistently changes every host identification file and DNS record automatically.

Explanation

Correct Answers

B:

Recommended administrative action: Set the intended persistent static hostname with `hostnamectl` or supported distribution settings and validate local host mapping separately. Linux principle: A transient hostname change is not necessarily persisted; hostname resolution and the configured system hostname are related but distinct functions.

C:

Most direct verification evidence: Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot. Linux principle: A transient hostname change is not necessarily persisted; hostname resolution and the configured system hostname are related but distinct functions.

Incorrect Answers

A:

This alternative addresses NetworkManager and systemd-networkd configuration ownership, not the specific issue of Hostnamectl and durable host identification: Inspect `systemctl` service state, NetworkManager device management, /etc/systemd/network and active connection profiles alongside `ip` state.

D:

That option would use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required, but it addresses a different concern. A transient hostname change is not necessarily persisted; hostname resolution and the configured system hostname are related but distinct functions.

E:

This shortcut is unsafe for the present Linux issue: Assume the command `hostname newname` persistently changes every host identification file and DNS record automatically. A transient hostname change is not necessarily persisted; hostname resolution and the configured system hostname are related but distinct functions.

Question 511

A Linux administrator investigates the following system incident: A private service name resolves incorrectly because /etc/hosts contains a stale override, but an operator changes /etc/resolv.conf expecting to bypass the hosts entry. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.

  1. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  2. Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source.
  3. Inspect and configure the appropriate `nmcli device wifi` and connection profile settings with approved authentication, secrets and autoconnect preferences.
  4. Use `nmcli connection` to edit the correct NetworkManager profile's IPv4 method, addresses, gateway and activation settings, then reapply deliberately.

Explanation

Correct Answer

B:

Recommended administrative action: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. conf expecting to bypass the hosts entry.

Incorrect Answers

A:

That option would assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

C:

That option would inspect and configure the appropriate `nmcli device wifi` and connection profile settings with approved authentication, secrets and autoconnect preferences, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

D:

That option would use `nmcli connection` to edit the correct NetworkManager profile's IPv4 method, addresses, gateway and activation settings, then reapply deliberately, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Question 512

On a production Linux workstation or server, a technician observes: A private service name resolves incorrectly because /etc/hosts contains a stale override, but an operator changes /etc/resolv.conf expecting to bypass the hosts entry. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.

  1. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.
  2. Different Linux networking managers apply persistent interface settings through their own configurations; conflicting ownership can cause changes to be ignored or overwritten.
  3. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  4. TCP, UDP and ICMP have different roles; UDP does not inherently acknowledge or reorder delivery and ICMP ping behavior does not establish application TCP availability.

Explanation

Correct Answer

A:

Relevant Linux operating principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. conf expecting to bypass the hosts entry.

Incorrect Answers

B:

This alternative addresses NetworkManager and systemd-networkd configuration ownership, not the specific issue of Local hosts resolution versus DNS settings: Different Linux networking managers apply persistent interface settings through their own configurations; conflicting ownership can cause changes to be ignored or overwritten. conf expecting to bypass the hosts entry. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

C:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

D:

This alternative addresses TCP versus UDP versus ICMP diagnostics, not the specific issue of Local hosts resolution versus DNS settings: TCP, UDP and ICMP have different roles; UDP does not inherently acknowledge or reorder delivery and ICMP ping behavior does not establish application TCP availability. conf expecting to bypass the hosts entry. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

Question 513

During an LPIC-1 practice lab, the operator encounters this condition: A private service name resolves incorrectly because /etc/hosts contains a stale override, but an operator changes /etc/resolv.conf expecting to bypass the hosts entry. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.

  1. Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output.
  2. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  3. Inspect `systemctl` service state, NetworkManager device management, /etc/systemd/network and active connection profiles alongside `ip` state.
  4. Examine `ip route show`, `ip route get` for a remote address, next-hop reachability and persisted route configuration.

Explanation

Correct Answer

A:

Most direct verification evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. conf expecting to bypass the hosts entry.

Incorrect Answers

B:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. conf expecting to bypass the hosts entry.

C:

This alternative addresses NetworkManager and systemd-networkd configuration ownership, not the specific issue of Local hosts resolution versus DNS settings: Inspect `systemctl` service state, NetworkManager device management, /etc/systemd/network and active connection profiles alongside `ip` state.

D:

This alternative addresses Linux routing tables and default gateway selection, not the specific issue of Local hosts resolution versus DNS settings: Examine `ip route show`, `ip route get` for a remote address, next-hop reachability and persisted route configuration. conf expecting to bypass the hosts entry. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

Question 514

A helpdesk escalation describes this Linux behavior: A private service name resolves incorrectly because /etc/hosts contains a stale override, but an operator changes /etc/resolv.conf expecting to bypass the hosts entry. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.

  1. Host resolution follows the documented local and DNS precedence without stale overrides for the service name.
  2. The selected transport matches reliability requirements and diagnostics distinguish blocked ICMP from a reachable TCP service.
  3. The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
  4. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.

Explanation

Correct Answer

A:

Observable acceptance criterion: Host resolution follows the documented local and DNS precedence without stale overrides for the service name. conf expecting to bypass the hosts entry.

Incorrect Answers

B:

This alternative addresses TCP versus UDP versus ICMP diagnostics, not the specific issue of Local hosts resolution versus DNS settings: The selected transport matches reliability requirements and diagnostics distinguish blocked ICMP from a reachable TCP service. conf expecting to bypass the hosts entry. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

C:

This alternative addresses Ip command address and link troubleshooting, not the specific issue of Local hosts resolution versus DNS settings: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart. conf expecting to bypass the hosts entry. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

D:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. It cannot establish a safe correction. conf expecting to bypass the hosts entry. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Question 515

An operations handoff identifies this problem: A private service name resolves incorrectly because /etc/hosts contains a stale override, but an operator changes /etc/resolv.conf expecting to bypass the hosts entry. Which misleading assumption MOST directly contributes to this failure and should be rejected? Select ONE best answer.

  1. Assume a displayed Wi-Fi SSID guarantees valid credentials and that any automatically connected access point is the approved enterprise network.
  2. Assume fe80:: addresses are globally routable and that an IPv4 dotted-decimal netmask is required for every IPv6 interface.
  3. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  4. Assume all DNS queries always use TCP and that knowing port 53 alone identifies the transport without checking protocol.

Explanation

Correct Answer

C:

Reject this specific misconception: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. It incorrectly assumes behavior that conflicts with the observed Linux conditions.

Incorrect Answers

A:

That option would assume a displayed Wi-Fi SSID guarantees valid credentials and that any automatically connected access point is the approved enterprise network, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

B:

That option would assume fe80:: addresses are globally routable and that an IPv4 dotted-decimal netmask is required for every IPv6 interface, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

D:

That option would assume all DNS queries always use TCP and that knowing port 53 alone identifies the transport without checking protocol, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Question 516

A team maintaining a Linux host reports: An application resolves hostnames through DNS despite an intended local mapping because the hosts lookup order was changed in /etc/nsswitch.conf. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.

  1. Inspect `ip route` and selected `ip route get`, then set or repair the appropriate default route in the active manager or with `ip route` for a controlled temporary change.
  2. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  3. Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source.
  4. Set the intended persistent static hostname with `hostnamectl` or supported distribution settings and validate local host mapping separately.

Explanation

Correct Answer

C:

Recommended administrative action: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. conf.

Incorrect Answers

A:

This alternative addresses Linux routing tables and default gateway selection, not the specific issue of Local hosts resolution versus DNS settings: Inspect `ip route` and selected `ip route get`, then set or repair the appropriate default route in the active manager or with `ip route` for a controlled temporary change. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

B:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. conf.

D:

That option would set the intended persistent static hostname with `hostnamectl` or supported distribution settings and validate local host mapping separately, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Question 517

While verifying a Linux change request, an engineer finds: An application resolves hostnames through DNS despite an intended local mapping because the hosts lookup order was changed in /etc/nsswitch.conf. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.

  1. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.
  2. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  3. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
  4. `ip` changes running kernel networking state, while NetworkManager connection profiles define persistent settings managed across restarts.

Explanation

Correct Answer

A:

Relevant Linux operating principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. conf.

Incorrect Answers

B:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. It cannot establish a safe correction. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

C:

This alternative addresses Ip command address and link troubleshooting, not the specific issue of Local hosts resolution versus DNS settings: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

D:

This alternative addresses NetworkManager persistent wired connection profiles, not the specific issue of Local hosts resolution versus DNS settings: `ip` changes running kernel networking state, while NetworkManager connection profiles define persistent settings managed across restarts. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

Question 518

A Linux administrator investigates the following system incident: An application resolves hostnames through DNS despite an intended local mapping because the hosts lookup order was changed in /etc/nsswitch.conf. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.

  1. Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output.
  2. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.
  3. Inspect `nmcli connection show`, device status, saved connection properties, live `ip addr` and route after reconnect or reboot.
  4. Inspect protocol-specific packet traces and socket details, run both ICMP and application-layer reachability tests, and check filtering rules.

Explanation

Correct Answer

A:

Most direct verification evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. conf.

Incorrect Answers

B:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. It cannot establish a safe correction. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

C:

That option would inspect `nmcli connection show`, device status, saved connection properties, live `ip addr` and route after reconnect or reboot, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

D:

That option would inspect protocol-specific packet traces and socket details, run both ICMP and application-layer reachability tests, and check filtering rules, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Question 519

On a production Linux workstation or server, a technician observes: An application resolves hostnames through DNS despite an intended local mapping because the hosts lookup order was changed in /etc/nsswitch.conf. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.

  1. Only the chosen manager owns the interface and configuration survives a controlled network-service restart without unexpected overrides.
  2. The selected transport matches reliability requirements and diagnostics distinguish blocked ICMP from a reachable TCP service.
  3. Host resolution follows the documented local and DNS precedence without stale overrides for the service name.
  4. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.

Explanation

Correct Answer

C:

Observable acceptance criterion: Host resolution follows the documented local and DNS precedence without stale overrides for the service name. conf.

Incorrect Answers

A:

This alternative addresses NetworkManager and systemd-networkd configuration ownership, not the specific issue of Local hosts resolution versus DNS settings: Only the chosen manager owns the interface and configuration survives a controlled network-service restart without unexpected overrides. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

B:

This alternative addresses TCP versus UDP versus ICMP diagnostics, not the specific issue of Local hosts resolution versus DNS settings: The selected transport matches reliability requirements and diagnostics distinguish blocked ICMP from a reachable TCP service. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Appropriate response: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. Root-cause evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. Independent acceptance: Host resolution follows the documented local and DNS precedence without stale overrides for the service name.

D:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Question 520

During an LPIC-1 practice lab, the operator encounters this condition: An application resolves hostnames through DNS despite an intended local mapping because the hosts lookup order was changed in /etc/nsswitch.conf. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.

  1. Inspect `ip -6 addr`, `ip -6 route`, router advertisements and a scoped ping6 to the link-local destination.
  2. Inspect and configure the appropriate `nmcli device wifi` and connection profile settings with approved authentication, secrets and autoconnect preferences.
  3. Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source.
  4. Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output.
  5. Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order.

Explanation

Correct Answers

C:

Recommended administrative action: Review hosts lookup precedence in nsswitch.conf and maintain the correct /etc/hosts and resolver settings for each source. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

D:

Most direct verification evidence: Compare `getent hosts name`, /etc/nsswitch.conf hosts line, /etc/hosts entry and DNS-only `dig` output. conf. Linux principle: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

Incorrect Answers

A:

That option would inspect `ip -6 addr`, `ip -6 route`, router advertisements and a scoped ping6 to the link-local destination, but it addresses a different concern. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

B:

This alternative addresses NetworkManager Wi-Fi authentication and saved profiles, not the specific issue of Local hosts resolution versus DNS settings: Inspect and configure the appropriate `nmcli device wifi` and connection profile settings with approved authentication, secrets and autoconnect preferences. conf.

E:

This shortcut is unsafe for the present Linux issue: Assume editing /etc/resolv.conf always overrides a conflicting /etc/hosts entry regardless of NSS hosts order. conf. Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.

LPI Level 1 (102-500) Practice Tests