Hey, mir ist gerade eben aufgefallen, dass ein Dienst nicht mehr funktionierte, der memcache auf localhost:11211 erreichen sollte. Nach kurzen Tests kam ich zu der Erkenntnis, dass wohl alle meine Abfragen von localhost auf die echte Domain localhost.de umgeleitet werden:
1 2 3 4 5 6 7 8 9 10 11 12 13 | root@levinus:~# ping localhost PING localhost.de (91.202.43.26) 56(84) bytes of data. 64 bytes from 91.202.43.26: icmp_seq=1 ttl=115 time=9.93 ms 64 bytes from 91.202.43.26: icmp_seq=2 ttl=115 time=9.83 ms 64 bytes from 91.202.43.26: icmp_seq=3 ttl=115 time=9.86 ms 64 bytes from 91.202.43.26: icmp_seq=4 ttl=115 time=9.84 ms 64 bytes from 91.202.43.26: icmp_seq=5 ttl=115 time=9.81 ms 64 bytes from 91.202.43.26: icmp_seq=6 ttl=115 time=9.88 ms ^C --- localhost.de ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5008ms rtt min/avg/max/mdev = 9.811/9.862/9.930/0.037 ms root@levinus:~# |
Wie man sieht wird localhost.de gepingt, die IP gehört nicht zu mir. Das verstehe ich jedoch nicht. Meine /etc/hosts (s.u.) und /etc/nsswitch.conf (s.u.) sind meiner Meinung nach sauber und sollten ohne Probleme funktionieren, ich habe ja auch nichts daran geändert. Woran kann das liegen? Nun funktionieren natürlich alle auf localhost konfigurierte Dienste nicht mehr.
Meine /etc/hosts:
ff02::1 ip6-allnodes ff02::2 ip6-allrouters ::1 levinus 127.0.0.1 levinus [meine statische IP] levinus 127.0.0.1 localhost.localdomain localhost levinus # Auto-generated hostname. Please do not remove this comment. 2a02:d40:9:123::e3c5 levinus ::1 localhost ip6-localhost ip6-loopback 127.0.0.1 levinus.de mail.levinus.de localhost
Meine /etc/nsswitch.conf
# /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: compat group: compat shadow: compat gshadow: files hosts: dns files networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis
Ich hoffe mir kann vielleicht jemand helfen. Ich vermute zwar, dass das nur ein blöder Fehler meinerseits ist, weiß aber trotzdem nicht mehr weiter. MfG levinus