On 10/24/12 14:51, Juha Heinanen wrote:
Richard Fuchs writes:
IPv6 addresses are supposed to be bracketed when
used within an URI.
Otherwise a parser wouldn't be able to tell if an optional port was
given or not. Compare
http://2620:0:2d0:200::8/ vs
http://[2620:0:2d0:200::8]/ vs
http://2620:0:2d0:200::8:80/ vs
http://[2620:0:2d0:200::8]:80/. See RFC 2732.
sure, when ipv6 address appears in URI, the brackets are needed to
surround it, but give me a reference where dns request can contain such
a bracketed name.
Obviously the DNS requests shouldn't happen in the first place. It's
already an address and doesn't need to be resolved. The DNS resolver
code seems to use str2ip6() everywhere, which does support the bracketed
notation, so I'm not sure where the problem could be.
cheers