FQDN: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
The current Full Qualified Domain Name, in short FQDN is setup via the /etc/hosts | The current Full Qualified Domain Name, in short FQDN is setup via the /etc/hosts file. | ||
== Configuration for a static IP adress == | == Configuration for a static IP adress == | ||
| Line 11: | Line 11: | ||
</pre> | </pre> | ||
}} | }} | ||
== Configuration for a dynamic IP adress == | |||
FQDN entry for dynamic IP address (e.g. via DHCP): | FQDN entry for dynamic IP address (e.g. via DHCP): | ||
| Line 18: | Line 20: | ||
</pre> | </pre> | ||
}} | }} | ||
== Check FQDN configuration == | == Check FQDN configuration == | ||
Revision as of 16:00, 3 December 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
Configuration for a dynamic IP adress
FQDN entry for dynamic IP address (e.g. via DHCP):
File: /etc/hosts
127.0.0.1 machine1.domain.local machine1 localhost
Check FQDN configuration
If everything is correctly configured a
# hostname --fqdn
should output the full FQDN.
| Code: Output |
machine1.domain.local |