Display Domain Name Linux. Whois A CLI Tool to Check Information About Owner of a Domain Name and IP Address. You might also be interested in following article.
Export PS1uH You should see the hostname in the prompt. In etchostname and etchosts. Domain DNS information can be verified from the Linux terminal using the following three commands.
The complete FQDN of the system is returned with hostname --fqdn.
The complete FQDN of the system is returned with hostname --fqdn. Displays every FQDN Fully Qualified Domain Name of the computer. Unless you are using bind or NIS for host lookups you can change the FQDN and the DNS domain name which is part of the FQDN in the etchosts file. You are trying to convert a host name with no domain to a host name with a domain.