I have values set in my hosts file and the original way of getting the address returnned the hostname it was linked to.