How do I find my hostname and domain name in Linux?

Nguyễn Trà

New member
How do I find my hostname and domain name in Linux?
Answer
To view the name of the DNS domain and FQDN (Fully Qualified Domain Name) of your machine,
use the -f and -d switches respectively. And the -A enables you to see all the FQDNs of the machine. To display the alias name (i.e., substitute names), if used for the host name, use the -a flag.
 

Tìm kiếm

Back
Top