I have a server with
search example.com in resolv.conf, and it works correctly for DNS lookups. That is, if I ping
host1.example.com is in DNS, it is found.
host1.example.com is in /etc/hosts instead of DNS, it is not found. I assume the entry in resolv.conf only applies to DNS.
Is there a way to make a domain search path that works for /etc/hosts entries, and if not, why not?