[SR-Users] dns queries on ipv6 addresses

Richard Fuchs rfuchs at sipwise.com
Wed Oct 24 20:55:57 CEST 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121024/c7c1f360/attachment.pgp>


More information about the sr-users mailing list