If you issue the command hostname -a, if you haven't already set your hostname, you might see something like this:
localhost
The -a switch instructs hostname to report the alias name of the host (if one is used.) If you issue the command hostname -d you might see something like this:
localdomain
The -d switch instructs hostname to report the DNS domain name of the server. If you issue the command hostname -f you might see something like this:
localhost.localdomain