ypdomainname

utility to set/show the host name or domain name

Install

All systems
curl cmd.cat/ypdomainname.sh
Debian Debian
apt-get install hostname
Ubuntu
apt-get install hostname
image/svg+xml Kali Linux
apt-get install hostname
CentOS
yum install hostname
Fedora
dnf install hostname
Windows (WSL2)
sudo apt-get update sudo apt-get install hostname
Raspbian
apt-get install hostname

hostname

utility to set/show the host name or domain name

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.

net-tools

NET-3 networking toolkit

This package includes the important tools for controlling the network subsystem of the Linux kernel. This includes arp, ifconfig, netstat, rarp, nameif and route. Additionally, this package contains utilities relating to particular network hardware types (plipconfig, slattach, mii-tool) and advanced aspects of IP configuration (iptunnel, ipmaddr). In the upstream package 'hostname' and friends are included. Those are not installed by this package, since there is a special "hostname*.deb".

yp-tools

Tools for working with Network Information System (NIS)