Use CanonicalHostName only when it's a FQDN else use HostName.