Package hostname

Utility to set/show the host name or domain name

http://packages.qa.debian.org/h/hostname.html

This package provides commands which can be used to display the system's
DNS name, and to display or set its hostname or NIS domain name.

General Commands (Section 1)
hostname
Hostname is used to display the system's DNS name, and to display or set its hostname or NIS domain name.Get Name When called without any arguments, the program...