FQDN

From Q
Revision as of 17:29, 13 January 2011 by Tgurr (talk | contribs)
Jump to navigation Jump to search

The current Full Qualified Domain Name, in short FQDN is setup via the /etc/hosts File.

FQDN entry for static IP address:

File: /etc/hosts
127.0.0.1       localhost
::1             localhost
192.168.0.123   machine1.domain.local        machine1

FQDN entry for dynamic IP address (e.g. via DHCP):

File: /etc/hosts
127.0.0.1       machine1.domain.local        machine1        localhost

If everything is correctly configured a

# hostname --fqdn

should output the full FQDN.

Code: Output
machine1.domain.local