Support both host and hostname.