hostname resolver using /etc/hosts format.