Hostname - Rather than invoking init scripts through ...

kayyy

New Member
hostname gibt mir meinen hostnamen korrekt aus.
hostname -f gibt mir immer noch den short namen an. In der /etc/hostname ist allerdings der komplette Hostname eingetragen wie bei /etc/hosts

Möchte ich nun hostname restarten bekomme ich folgenden "fehler".

Code:
/etc/init.d/hostname restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service hostname restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart hostname

Code:
root@11209564:~# service hostname start
hostname stop/waiting

bringt leider auch nichts.

Bei Google habe ich leider keine wirkliche Lösung gefunden ...

Code:
root@11209564:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid


root@11209564:~# restart hostname
restart: Unknown instance:
 
Das Problem ist, er übernimmt den hostnamen nicht bei hostname -f.
Hier wird weiterhin der short name ausgegeben und nicht der gleiche hostname wie bei /etc/hosts :(


Code:
root@reload:~# /etc/init.d/hostname.sh start
-bash: /etc/init.d/hostname.sh: No such file or directory
root@reload:~# /etc/init.d/hostname start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service hostname start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start hostname
hostname stop/waiting
root@reload:~# hostname -f
11209564
root@reload:~# hostname
11209564.domain.com
 
Okay, dann probier echt 'mal neuzustarten. Wenn nicht 'mal das klappt, dann poste bitte die Ausgabe der Befehle:
Code:
cat /etc/hostname; cat /etc/hosts; cat ~/.bashrc; cat ~/.bash_aliases; set | egrep -ai '^(host|hostname)='
 
Back
Top