How can you get the host name of an `InetAddress` object in Java?
You can get the host name by calling `getHostName()`, but it may not always return the correct result if the DNS is not available.
Thatâ€™s correct! DNS resolution issues can affect the result of `getHostName()`.
Could you explain what `getCanonicalHostName()` does and how it differs from `getHostName()`?