Added forward/reverse lookup of the hostname and IP address (by @jedda).  Minor fix for hostnames that have numerals or hyphens (by @yesdevnull)