Use hostnamectl to view different types of hostnames:
hostnamectl
Pretty hostname: The user-defined hostname.