LFCS Networking Practice Question
A Linux server is unable to resolve the hostname 'app.internal.example.com' but can resolve other names. The /etc/nsswitch.conf file contains: hosts: files mdns4_minimal [NOTFOUND=return] dns. The /etc/hosts file does not list the hostname. Which configuration change would most likely resolve the issue?
⚠ Common exam trap
It's easy for candidates to assume the issue is with DNS configuration or order, but the real problem is the [NOTFOUND=return] action on mdns4_minimal, which prematurely terminates the resolution chain for non-.local hostnames.
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
✓
Remove the mdns4_minimal entry or change it to 'mdns4' without the NOTFOUND=return
The issue is that mdns4_minimal with [NOTFOUND=return] causes the resolver to stop after a failed mDNS query, preventing it from falling back to DNS. Since the hostname is not in /etc/hosts and not reachable via mDNS, the resolver returns 'not found' immediately without querying DNS. Removing the mdns4_minimal entry or changing it to 'mdns4' (without the NOTFOUND=return) allows the resolver to proceed to DNS if mDNS fails.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Change the hosts line to: hosts: dns files mdns4_minimal
Why it's wrong here
This changes order but still has the NOTFOUND=return policy which may stop after mdns.
- ✗
Configure /etc/resolv.conf to use a different DNS server
Why it's wrong here
DNS resolution is not the primary issue; nsswitch is preventing DNS query.
- ✓
Remove the mdns4_minimal entry or change it to 'mdns4' without the NOTFOUND=return
Why this is correct
Removing the return policy allows fallback to DNS.
- ✗
Add the hostname to the local multicast DNS configuration
Why it's wrong here
The hostname is on a different domain and not served by mDNS.
Visual reference
Go deeper
Related to this question
About these practice questions
This LFCS question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.