what is the easiest way to get a host's canonical host name from linux's command line?
If it matters, my shell is bash.
CLARIFICATION: I want another host's canonical hostname, either by ip or by non canonical hostname. Not the local host's canonical hostname.