Any real use cases that we are NOT prioritise Local Files Over DNS in `nsswitch.conf`
0
votes
2
answers
79
views
**Background**
Recently, I learned that there is a name Service Switch configuration file -
nsswitch.conf
in some Unix-like operating systems. We can change the domain name resolution order using nsswitch.conf
.
The most common order should be prioritizing Local Files over DNS. In the nsswitch.conf
, it should be defined as
hosts: files DNS
I want to know if any other use cases are NOT configured as the above? For example,
hosts: DNS
---
**Question**
What are the real use cases, and why are we **NOT** prioritising Local Files Over DNS in nsswitch.conf
? **One use case is enough.**
Asked by Continuous Improvement
(145 rep)
Apr 9, 2025, 04:26 AM
Last activity: Apr 12, 2025, 06:05 AM
Last activity: Apr 12, 2025, 06:05 AM