title: Host Name Vs Canonical Host Name
body: <p>Can anyone please explain me the difference between Host Name and Canonical Host Name?</p>
  
  <p>I am currently using InetAddress class to fetch host name using the IP Address. I came across these 2 APIs.
  So I am just wondering, which one I should opt for? </p>