Red Hat Enterprise Linux で/etc/nsswitch.conf を "hosts: dns files" に変更した場合に名前解決に及ぶ影響
Issue
/etc/nsswitch.confがhosts: dns filesとして設定されている場合、localhostにアクセスすると何が起こりますか?DNSと/etc/hostsの両方に、異なる IP を持つhostnameレコードがあります。どちらのレコードが使用されますか?- 名前解決では何が優先されますか?
Environment
- Red Hat Enterprise Linux (すべてのバージョン)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.