What is the difference between /etc/hosts and /etc/resolv.conf? Also, is there a good documentation that explain all these configuration files.
Thank you. Bala
If this does not answer your question, please clarify further.
Look at the following manpages:
resolv.conf specifies nameservers in order of search preference.
hosts overrides all nameservers by mapping urls/shortnames to IPs.