How Do I Find My Full Hostname in Linux?
Contents

How do I find my full hostname?

Using the command prompt

  1. From the Start menu, select All Programs or Programs, then Accessories, and then Command Prompt.
  2. In the window that opens, at the prompt, enter hostname . The result on the next line of the command prompt window will display the hostname of the machine without the domain.

18 янв. 2018 г.

How do I find the FQDN of an IP address in Linux?

If you’re looking for the Fully Qualified Domain Name (FQDN) of a network address, you can use DNS query tools like dig or nslookup , as described by @firm and @Richard Holloway. To be clear, hostname will just return the short name. Use the -f parameter; hostname -f to get the fully qualified name.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest