set hostname from reverse dns lookup. Also create dns cname entries