dnsdomainname

Show the system's DNS domain name. Note: The tool uses gethostname to get the hostname of the system and then getaddrinfo to resolve it into a canonical name. More information: <https://www.gnu.org/software/inetutils/manual/html_node/dnsdomainname-invocation.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y hostname
Ubuntu
RUN apt-get update && \ apt-get install -y hostname
Arch Arch Linux
RUN pacman -S --noconfirm inetutils
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y hostname
CentOS
RUN yum install -y hostname
Fedora
RUN dnf install -y hostname
Raspbian
RUN apt-get update && \ apt-get install -y hostname
click the source code to copy install dnsdomainname on any operating system with command-not-found.com