
Am Freitag, 24. Februar 2006 13:27 schrieb Sandy Drobic:
Bernd Johannes wrote:
[hosts tut nicht richtig...] Wie sieht deine /etc/resolv.conf und deine /etc/nsswitch.conf aus?
resolv.conf: -------- domain <meine-domäne> nameserver 10.15.1.52 -------- nsswitch.conf: -------- <... Kommentare...> 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 -------- 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 10.15.1.51 tommyux 10.15.1.52 gamma 127.0.0.1 localhost 127.0.0.1 ads.multimania.lycos.fr 127.0.0.1 oas.wwwheise.de 127.0.0.1 info-ad.de 127.0.0.1 www.oylaback.de 127.0.0.1 www.cybercity.de <...weitere hunderte Einträge...> -------- ich habe es auch schon mit hosts: -------- <...s.o.> 127.0.0.1 localhost 127.0.0.1 localhost ads.multimania.lycos.fr 127.0.0.1 localhost oas.wwwheise.de 127.0.0.1 localhost info-ad.de 127.0.0.1 localhost www.oylaback.de 127.0.0.1 localhost www.cybercity.de <...> -------- probiert. Habe jetzt herausgefunden: bei "ping" fruchtet es, da kommt die reply von 127.0.0.1. Bei nslookup fruchtet es nicht, da kommt die tatsächliche IP-Adresse zurück. Bei Yast2/Hosts kommt nur der letzte Eintrag, und wenn man dann aus versehen speichert, dann ist die ganze schöne Liste weg. Wäre aber nicht tragisch, verwende ich eh nie. Bin jetzt verunsichert, ob es wirklich fruchtet oder nicht, da die meisten "gesperrten" Adressen ja in Skripten dazu benutzt werden, um Informationen zu sammeln - also eher unauffällig agieren. Oder kümmert sich "nslookup" nicht um hosts, und meine ganze Aufregung war mal wieder umsonst? Ich dachte immer, die Antwort, die nslookup liefert, ist auch die, die ein Webbrowser bekommt, wenn er seine URL auflösen läßt. Viele Grüße Bernd