Courseiva
Network Client ManagementeasyMultiple SelectObjective-mapped

LPIC-2 Network Client Management Practice Question

Which TWO configuration files are commonly used to specify DNS resolver settings on a Linux system? (Select TWO.)

⚠ Common exam trap

Many candidates confuse /etc/nsswitch.conf with DNS resolver configuration, but it only controls the lookup order (e.g., 'hosts: files dns') and does not contain nameserver addresses.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

/etc/systemd/resolved.conf

/etc/systemd/resolved.conf is the configuration file for systemd-resolved, a service that manages DNS resolution on modern Linux systems. Option C is correct because /etc/resolv.conf is the traditional configuration file for specifying DNS resolver settings, including nameserver addresses and search domains, and is still widely used.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • /etc/nsswitch.conf

    Why it's wrong here

    Controls the order of name resolution services, not DNS server addresses.

  • /etc/systemd/resolved.conf

    Why this is correct

    Configuration file for systemd-resolved, which can manage DNS settings.

  • /etc/resolv.conf

    Why this is correct

    The main configuration file for DNS resolver.

  • /etc/dhcp/dhclient.conf

    Why it's wrong here

    DHCP client configuration; can override DNS but is not a DNS resolver configuration file itself.

  • /etc/hosts

    Why it's wrong here

    Static hostname-to-IP mapping file, not DNS resolver configuration.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every LPIC-2 question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.