• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

OS 11.1- ping localhost ->unknown host localhost

Auf einem Opensuse 11.1 System wird der Name localhost nicht mehr aufgelöst.
Aber nslookup behauptet "alles okay":
linx:/ # nslookup
> localhost
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: localhost
Address: 127.0.0.1

Der Ping (und auch andere Refernzen auf localhost) schlägt fehl.
linx:/ # ping localhost
ping: unknown host localhost

Code:
host.conf:
order hosts bind
multi on

Code:
 hosts-Datei
127.0.0.1       localhost linx
# special IPv6 addresses
::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.2       linx.mydomain.de linx

Code:
File: resolv.conf 
nameserver 127.0.0.1
nameserver 192.168.0.4
domain mydomain.de
search mydomain.de

Hat jemand einen Tip wo es hier klemmt?
 
Wie ist denn Dein(e) Karte/Netz konfiguriert ? (statisch, DHCP, Router=192.168.0.4=Nameserver? ...)

Liste mal die Ausgabe von
ifconfig
route
 
Momentan ist wieder alles funktionsfähig. Keine Ahnung was da los ist. Sobald der Fehler wieder auftritt, poste ich hier mal die Details wie angefordert.
 
So,
auf einem anderen Server habe ich genau das gleiche Problem (auch Opensuse 11.1; die YOU Updates ziehen da einen Fehler rein; den habe ich leider nicht dokumentiert).
Auch nach einem Reboot gibt es dieses hier:
-------------
xxx1:/home/install # ping localhost
ping: unknown host localhost
xxx1:/home/install # nslookup localhost
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: localhost
Address: 127.0.0.1
-----------
Wie? Entweder ist localhost auflösbar oder nicht?

Netzwerkadresse: statisch zugewiesen (ist SMB Server im LAN).
ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:08:54:37:A6:57
          inet addr:192.168.80.1  Bcast:192.168.80.255  Mask:255.255.255.0
          inet6 addr: fe80::208:54ff:fe37:a657/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:252 errors:0 dropped:0 overruns:0 frame:0
          TX packets:329 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:52685 (51.4 Kb)  TX bytes:34098 (33.2 Kb)
          Interrupt:10 Base address:0x2000
route:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.80.0    *               255.255.255.0   U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.80.254  0.0.0.0         UG    0      0        0 eth0

Nachher mache ich nochmal eine OS 11.1 installation in einer VM und schaue, ob ich das ganze reproduzieren kann..
 
nssswitch.conf:
passwd: compat
group: compat

hosts: hosts dns
networks: files dns

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files nis
publickey: files

bootparams: files
automount: files nis
aliases: files
Reproduzieren konnte ich den Fehler bisher nicht (Opensuse 11.1 frisch in einer VM installieren, YOU hinterher).
 
Oben