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


 
FQDN entry for dynamic IP address (e.g. via DHCP):
FQDN Eintrag für dynamische IP-Adressen (per DHCP):
{{File|/etc/hosts|
{{File|/etc/hosts|
<pre>
<pre>
127.0.0.1      rechner1.domain.local        rechner1       localhost
127.0.0.1      machine1.domain.local        machine1       localhost
</pre>
</pre>
}}
}}


If everything is correctly configured a {{Root|hostname --fqdn}} should output the full FQDN.


Wenn alles richtig konfiguriert ist sollte ein {{Root|hostname --fqdn}} den vollständigen FQDN liefern.
{{Code|Output|
 
{{Code|Ausgabe|
<pre>
<pre>
rechner1.domain.local
machine1.domain.local
</pre>
</pre>
}}
}}

Revision as of 17:29, 13 January 2011

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