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

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

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

Answer: hosts

Explanation/Reference:
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 0

Your email address will not be published. Required fields are marked *