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

Việt Quân

New member
How do I find my hostname and domain name in Linux?
Answer
domainname command in Linux is used to return the Network Information System (NIS) domain name of the host. You can
use hostname -d command as well to get the host domainname. If the domain name is not set up in your host then the response will be “none”.
 

Tìm kiếm

Back
Top