PrepAway - Latest Free Exam Questions & Answers

which databases to search for host name lookups?

In /etc/nsswitch.conf, which directive specifies which databases to search for host name lookups?

PrepAway - Latest Free Exam Questions & Answers

Answer: hosts

Explanation:
hosts defines where namelookup commands like hostname, will look for the information. The line in /etc/nsswitch.conf typically reads
hosts: files dns
which would indicate that first /etc/hosts would be searched for the hostname, and only then would a DNS-Server be contacted.


Leave a Reply