[Ilugc] Strange - v6 entries in hosts file dont work on feisty update

  • From: linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
  • Date: Sun Apr 29 10:06:57 2007

This is only on my laptop, not on my server (also on feisty)
Both apt-get dist-upgraded from edgy eft as it happens.

So - a hosts file entry for ip6-localhost exists.

suresh@etherkiller 10:02:05 <~> $ grep ip6-localhost /etc/hosts
::1     ip6-localhost ip6-loopback v6.example.com

The localhost interface has ::1 (ipv6 localhost) bound to it

suresh@etherkiller 10:02:08 <~> $ ifconfig lo
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:13882 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13882 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3701233 (3.5 MiB)  TX bytes:3701233 (3.5 MiB)

ssh and telnet to services on ip6-localhost dont work.

suresh@etherkiller 10:02:11 <~> $ ssh suresh@ip6-localhost
ssh: ip6-localhost: Name or service not known

While I can ssh just fine to ::1

suresh@etherkiller 10:02:34 <~> $ ssh suresh@::1
The authenticity of host '::1 (::1)' can't be established.
RSA key fingerprint is b2:3f:c4:12:25:7b:a4:8b:26:1a:71:90:20:45:9f:89.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '::1' (RSA) to the list of known hosts.
Password:
Linux etherkiller 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686

Funnily enough ping6 to that same hostname works

suresh@etherkiller 10:02:27 <~> $ ping6 ip6-localhost
PING ip6-localhost(ip6-localhost) 56 data bytes
64 bytes from ip6-localhost: icmp_seq=1 ttl=64 time=0.038 ms
64 bytes from ip6-localhost: icmp_seq=2 ttl=64 time=0.042 ms

--- ip6-localhost ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.038/0.040/0.042/0.002 ms

This is insane.. worked just fine on edgy and on feisty beta.

        srs

Other related posts:

  • » [Ilugc] Strange - v6 entries in hosts file dont work on feisty update - Suresh Ramasubramanian