Hostname and IP resolver for testing /etc/hosts and nsswitch.conf
