FQDN: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Die Seite wurde neu angelegt: Der aktuelle Full Qualified Domain Name, kurz FQDN wird vom System anhand der /etc/hosts Einträge bestimmt. FQDN Eintrag für statische IP-Adressen: {{Box File|/etc/h...
 
Tgurr (talk | contribs)
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
Der aktuelle Full Qualified Domain Name, kurz FQDN wird vom System anhand der /etc/hosts Einträge bestimmt.
The current Full Qualified Domain Name, in short FQDN is setup via the /etc/hosts file.


FQDN Eintrag für statische IP-Adressen:
== Configuration for a static IP adress ==
{{Box File|/etc/hosts|
 
FQDN entry for static IP address:
{{File|/etc/hosts|
<pre>
<pre>
127.0.0.1      localhost
127.0.0.1      localhost
192.168.0.123  rechner1.domain.local        rechner1
::1            localhost
 
192.168.0.123  machine1.domain.local        machine1
</pre>
}}
 
== 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|
<pre>
127.0.0.1      machine1.domain.local        machine1        localhost
</pre>
</pre>
}}
}}


FQDN Eintrag für dynamische IP-Adressen (per DHCP):
== Check FQDN configuration ==
{{Box File|/etc/hosts|
If everything is correctly configured a {{Root|hostname --fqdn}} should output the full FQDN.
 
{{Code|Output|
<pre>
<pre>
127.0.0.1      localhost
machine1.domain.local
127.0.0.1      rechner1.domain.local       rechner1
</pre>
</pre>
}}
}}

Latest revision as of 14: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
127.0.0.1       localhost
::1             localhost

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