FQDN: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
mNo edit summary
Tgurr (talk | contribs)
mNo edit summary
Line 1: Line 1:
The current Full Qualified Domain Name, in short FQDN is setup via the /etc/hosts File.
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:
FQDN entry for static IP address:
Line 17: Line 19:
}}
}}


== Configuration for a dynamic IP adress ==
[...]
== Check FQDN configuration ==
If everything is correctly configured a {{Root|hostname --fqdn}} should output the full FQDN.
If everything is correctly configured a {{Root|hostname --fqdn}} should output the full FQDN.



Revision as of 13:52, 4 May 2012

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
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

Configuration for a dynamic IP adress

[...]

Check FQDN configuration

If everything is correctly configured a

# hostname --fqdn

should output the full FQDN.

Code: Output
machine1.domain.local