Difference between revisions of "FQDN"

From Q
Jump to navigation Jump to search
Line 8: Line 8:      localhost      localhost
::1            localhost
::1            localhost
 +  machine1.domain.local        machine1  machine1.domain.local        machine1

Latest revision as of 15:18, 13 November 2013

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

Configuration for a static IP adress

FQDN entry for static IP address:

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

Configuration for a dynamic IP adress

Note: The following isn't necessary when using systemd as it configurates everything correctly.

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

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

Check FQDN configuration

If everything is correctly configured a

# hostname --fqdn

should output the full FQDN.

Code: Output