tomww
20.11.02, 20:37
ich möchte mir drei virtuelle Hosts auf meinem lokalen Rechner einrichten. Ich habe dazu entsprechende Einträge über ein Include-File zur httpd.conf gemacht. Nun wollte ich meine /etc/hosts nochmal editiern und dort meiner lokalen IP-Adresse (192.168.12.9) die entsprechenden Namen zuweisen.
Nach Speichern der /etc/hosts lasse ich dann SuSEconfig laufen und meine Änderungen an der hosts sind verschwunden - woran könnte das liegen?
Ich kopier ans Ende mal ein paar Auszüge aus Dateien rein in denen ich Fehler vermutet habe.
In der hosts hatte ich dann eingefügt:
192.168.12.9 mydomain.de mydomain
und dieser Einträg verschwindet nach SuSEconfig wieder ...
Vielen Dank für alle Tips,
Tom
-----------------------
# /etc/host.conf - resolver configuration file
order hosts, bind
multi on
# /etc/nsswitch.conf
passwd: compat
group: compat
hosts: files dns
networks: files dns
services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
publickey: files
bootparams: files
automount: files nis
aliases: files
# /etc/hosts
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.1 localhost
192.168.12.9 linux.walter linux
Nach Speichern der /etc/hosts lasse ich dann SuSEconfig laufen und meine Änderungen an der hosts sind verschwunden - woran könnte das liegen?
Ich kopier ans Ende mal ein paar Auszüge aus Dateien rein in denen ich Fehler vermutet habe.
In der hosts hatte ich dann eingefügt:
192.168.12.9 mydomain.de mydomain
und dieser Einträg verschwindet nach SuSEconfig wieder ...
Vielen Dank für alle Tips,
Tom
-----------------------
# /etc/host.conf - resolver configuration file
order hosts, bind
multi on
# /etc/nsswitch.conf
passwd: compat
group: compat
hosts: files dns
networks: files dns
services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
publickey: files
bootparams: files
automount: files nis
aliases: files
# /etc/hosts
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.1 localhost
192.168.12.9 linux.walter linux