How to Get the Fully Qualified Domain Name in Unix

On any system of computer networks based on the Internet protocol, a single computer is uniquely identified by a fully qualified domain name (FQDN). An FQDN contains two parts: a host name followed by (and separated by a period from) an absolute domain name. The host name is a locally unique, locally assigned name for a computer (e.g., there can be a single "mail090" host within domain "yahoo.com"). The absolute domain name gives all the information needed to locate the host, ending at a top-level domain such as ".com." You can get the current FQDN on a computer running any version of the Unix operating system.

Instructions

    • 1

      Log in to the Unix computer in text mode. The computer brings up a command-line interface called the shell.

    • 2

      Verify that the computer is connected to a network by entering this command into the shell:

      ping com.com

      Replace "com.com" by the FQDN of any host that should be reachable from your computer. Press "Enter." If the output consists of a series of lines beginning with "64 bytes" and ending with time measurements in milliseconds, your computer is connected. Press "Control-C" to stop "ping."

    • 3

      Get the FQDN by entering the following command into the shell:

      hostname --fqdn

      Press "Enter." The output of the "hostname" command is the FQDN.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured