Displays the hostname of the local machine.
hostname
Display the hostname of the computer whose full DNS name is test.mtitcanada.com :
hostname test
DNS