Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Alex Hermann
On Thursday 25 October 2012, Daniel-Constantin Mierla wrote: > On 10/25/12 4:33 PM, Alex Hermann wrote: > > On Thursday 25 October 2012, Juha Heinanen wrote: > >> an ipv6 address can thus never be a valid domain name. an ipv4 address, > >> on the other hand, is syntactically valid domain name and

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Marius Zbihlei
On 10/25/2012 05:33 PM, Alex Hermann wrote: On Thursday 25 October 2012, Juha Heinanen wrote: an ipv6 address can thus never be a valid domain name. an ipv4 address, on the other hand, is syntactically valid domain name and perhaps someone has populated their local name server with such names.

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Daniel-Constantin Mierla
On 10/25/12 4:33 PM, Alex Hermann wrote: On Thursday 25 October 2012, Juha Heinanen wrote: an ipv6 address can thus never be a valid domain name. an ipv4 address, on the other hand, is syntactically valid domain name and perhaps someone has populated their local name server with such names. B

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Alex Hermann
On Thursday 25 October 2012, Juha Heinanen wrote: > an ipv6 address can thus never be a valid domain name. an ipv4 address, > on the other hand, is syntactically valid domain name and perhaps > someone has populated their local name server with such names. But the application (kamailio) should no

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Juha Heinanen
i would like to add and when hostpart of r-uri is ipv4 address, wireshark tells me that kamailio does NOT try to resolve it from dns, but when hostpart is [ipv6 address] then (as i have shown earlier), kamailio tries to resolve it. if it would be possible to make treatment of ipv6 hostpart the sam

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The better fix looking at the patch you proposed would be to use the > function that detects is valid ipv6, not just something starting with > '['. this has nothing to with what is valid ipv6, but rather, how does a valid domain name look like. domain name con

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Klaus Darilion
On 24.10.2012 20:41, Juha Heinanen wrote: Richard Fuchs writes: this is not the real fix, but helps until someone figures out why dns query on something that is not a name but wrongly formatted ipv6 address is done in the first place. What do you mean with "wrongly formatted"? the ipv6 ad

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-25 Thread Daniel-Constantin Mierla
On 10/24/12 9:02 PM, Juha Heinanen wrote: Richard Fuchs writes: Obviously the DNS requests shouldn't happen in the first place. exactly, that has been my point all the time. the patch that i proposed is like aspirin until the real bug has been fixed. Is the query type A or when dns for

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Juha Heinanen
Richard Fuchs writes: > Obviously the DNS requests shouldn't happen in the first place. exactly, that has been my point all the time. the patch that i proposed is like aspirin until the real bug has been fixed. -- juha ___ SIP Express Router (SER) an

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Richard Fuchs
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 h

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Juha Heinanen
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:

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Richard Fuchs
On 10/24/12 14:41, Juha Heinanen wrote: > Richard Fuchs writes: > >>> this is not the real fix, but helps until someone figures out why dns >>> query on something that is not a name but wrongly formatted ipv6 address >>> is done in the first place. >> >> What do you mean with "wrongly formatted"?

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Juha Heinanen
Richard Fuchs writes: > > this is not the real fix, but helps until someone figures out why dns > > query on something that is not a name but wrongly formatted ipv6 address > > is done in the first place. > > What do you mean with "wrongly formatted"? the ipv6 address that is passed to dns serve

Re: [SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Richard Fuchs
On 10/24/12 14:28, Juha Heinanen wrote: > this is not the real fix, but helps until someone figures out why dns > query on something that is not a name but wrongly formatted ipv6 address > is done in the first place. What do you mean with "wrongly formatted"? cheers signature.asc Description:

[SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Juha Heinanen
if i add this test in the beginning of resolve.c/get_record function, the bogus dns queries on bracketed ipv6 addresses can be prevented: if (name[0] == '[') { return 0; } this is not the real fix, but helps until someone figures out why dns query on something that is

[SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Juha Heinanen
another question on this: > Oct 24 14:08:35 siika /usr/sbin/sip-proxy[18196]: INFO: Request URI is > > Oct 24 14:08:35 siika pdns[4269]: Received a malformed qdomain from > 127.0.0.1, '[2002:c062:670a::10]': sending servfail > Oct 24 14:08:35 siika pdns[4269]: Received a malformed qdomain from

[SR-Users] dns queries on ipv6 addresses

2012-10-24 Thread Juha Heinanen
from the mailing list archives i have learned that dns_try_ipv6=yes in config file is supposed to prevent dns query on ipv6 address. if i have it "no", i get to syslog: Oct 24 14:07:35 siika /usr/sbin/sip-proxy[17958]: INFO: Request URI is Oct 24 14:07:35 siika pdns[4269]: Received a malforme