Create reliable method of checking if hostnames refer to same host

This has been a problem for a while now with checking host equivalency. This method should accurately say whether two hostnames are identical.
Do you want to add `output` in this message too just in case something useful was printed to stdout?