Is there any effect on name resolution if nsswitch.conf changed as "hosts: dns files" ?

Solution Verified - Updated -

Issue

  • What happens while accessing "localhost" when, /etc/nsswitch.conf is set as "hosts: dns files"?
  • There is a hostname record both in DNS and /etc/hosts with different IPs. Which record will be used?

Environment

  • Red Hat Enterprise Linux all version

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.