Ich hatte es nicht exklusiv mit bind ::1 ausprobiert gehabt. Nur mit bind localhost und dann war weder in ss .. etwas auf ipv6 zu sehen noch konnte ich es via redis-cli -h ::1 ansprechen.
localhost ist was auch immer aufgelöst werden kann und sofern man nicht dran rumgetüftelt hat ist das auch beides.
root@grom-deb:~# getent hosts localhost
::1 localhost ip6-localhost ip6-loopback
root@grom-deb:~# getent ahostsv4 localhost
127.0.0.1 STREAM localhost
127.0.0.1 DGRAM
127.0.0.1 RAW
127.0.0.1 STREAM
127.0.0.1 DGRAM
127.0.0.1 RAW
root@grom-deb:~# getent ahostsv6 localhost
::1 STREAM localhost
::1 DGRAM
::1 RAW
root@grom-deb:~# getent ahosts localhost
::1 STREAM localhost
::1 DGRAM
::1 RAW
127.0.0.1 STREAM
127.0.0.1 DGRAM
127.0.0.1 RAW
Nun habe ich auch noch einmal explizit bind ::1 gemacht und dann funktioniert nur noch ipv6. Und wie man sieht hat redis da wohl ein komisches verhalten.
root@grom-deb:~# redis-cli -h ::1
[::1]:6379>
root@grom-deb:~# redis-cli -h 127.0.0.1
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
root@grom-deb:~# redis-cli -h localhost
Could not connect to Redis at localhost:6379: Connection refused
not connected>
Nur zur vervollständigung ein ping
root@grom-deb:~# ping localhost
PING localhost (::1) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.067 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.051 ms