Updated getNode() to accept both an ID or a hostname.