domainname / hostname setzen

Alexander Dalloz ad+lists at uni-x.org
Sat Mar 26 02:10:12 UTC 2005


Am Sa, den 26.03.2005 schrieb Al Bogner um 0:59:

> Ich möchte hostname und domainname setzen, zB so:
> 
> domainname -v local
> Setze domainname auf ,,local''

Dir ist klar, was "domainname" ist? Ich fürchte, nein.

> cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> #127.0.0.1              client5.local client5 localhost.localdomain 
> # localhost
> 127.0.0.1       localhost
> 192.168.1.105   client5.local   client5

Warum hast du die localhost mapping Zeile zerstört? Es steht doch nicht
ohne Grund in der hosts, dass du sie nicht verstümmeln sollst.

127.0.0.1               localhost.localdomain localhost

Und dann die Finger von lassen!

> Beim nächsten Neustart ist die Einstellung aber weg.
> 
> domainname -v
> getdomainname()=,,(none)''
> (none)

> Al

Wenn du einen FQDN hostname setzen willst, also der hostname deines
Rechners nicht nur client5 lauten soll, sondern client5.local, dann geht
es nicht um "domainname". Editiere /etc/sysconfig/network und dort
HOSTNAME. Oder bemühe system-config-network. DOMAIN und NISDOMAIN wäre
auch ein mögliches Setting, ist allerdings für NIS da. Zum Nachlesen:
/usr/share/doc/initscripts-*/sysconfig.txt.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.770_FC2smp 
Serendipity 03:03:55 up 9 days, 1:00, load average: 0.27, 0.39, 0.47 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-de-list/attachments/20050326/0a89f504/attachment.sig>


More information about the Fedora-de-list mailing list