Subject: IPv6 in dualstack breaks IPv4 loopback virtualisation
From: cryptronic <mail@cryptronic.de>
Date: Thu, 09 Sep 2010 19:01:55 +0200

Hi all,

i have problems using an dual stack setup in guest:

ping localhost and 127.0.0.1 results as expected in return from 127.0.0.1

Iif i try using wget on localhost

# wget localhost
--2010-09-09 16:57:07--  http://localhost/
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45 [text/html]
Saving to: `index.html'

100%[=======================>] 45          --.-K/s   in 0s

2010-09-09 16:57:07 (5.93 MB/s) - `index.html' saved [45/45]

i get the expected file but in my apache access log the real localhost 
adress is being displayed:

127.27.114.1 - - [09/Sep/2010:16:57:07 +0000] "GET / HTTP/1.0" 200 45 
"-" "Wget/1.11.4"

Is there a need for an ipv6 loopback virtualization?

If I'm using apache in ipv4 only mode i got the old expected behaviour:

127.0.0.1 - - [09/Sep/2010:16:59:06 +0000] "GET / HTTP/1.0" 200 45 "-" 
"Wget/1.11.4"

Best regards

Oliver