Re: [reSIProcate-users] No IPV6 AAAA support in latest resiprocate release
Those README's are really old, I wouldn't pay any attention to them. We should remove them or update them. I have tested resip with DNS IPv6 many times at SIPit events, so I know it has worked in the past. : )
Scott
On Fri, Jan 27, 2012 at 1:28 PM, fuliang yuan
<fuliangyuan@xxxxxxxxx> wrote:
Hi Scott,
I see the README file in ares of resiprocate:
....................
Some features are missing from the current version of ares, relative
to the BIND resolver:
* There is no IPV6 support.
..............................
Since I have not found DNS server for IPV6, I have not tested this kind of query.
I will make IPV6 tests in the near future.
Thank you so much for your explain!
Frank
On Fri, Jan 27, 2012 at 12:04 PM, Scott Godin
<sgodin@xxxxxxxxxxxxxxx> wrote:
OK it looks like ares_gethostbyname is not ever called by resip itself. I suspect that the effort to add IPv6 support to ares, was only done on those features of ares that were currently being used by the stack. I suspect the hosts file parsing may only handle V4 as well.
Are you having any issues with using the resip stack and looking up IPV6 addresses from DNS?
Note: There is a linux ./configure option to c-ares in place of ares in resip.
ScottOn Fri, Jan 27, 2012 at 12:34 PM, fuliang yuan
<fuliangyuan@xxxxxxxxx> wrote:
Hi Scott,
Here is one example:
in c-ares ares_gethostbyname.c:
static void next_lookup(struct host_query *hquery, int status_code)
{
const char *p;
struct hostent *host;
int status = status_code;
for (p = hquery->remaining_lookups; *p; p++)
{
switch (*p)
{
case 'b':
/* DNS lookup */
hquery->remaining_lookups = p + 1;
if ((hquery->want_family == AF_INET6) ||
(hquery->want_family == AF_UNSPEC)) {
/* if inet6 or unspec, start out with AAAA */
hquery->sent_family = AF_INET6;
ares_search(hquery->channel, hquery->name, C_IN, T_AAAA,
host_callback, hquery);
}
else {
hquery->sent_family = AF_INET;
ares_search(hquery->channel, hquery->name, C_IN, T_A,
host_callback, hquery);
}
return;
...............
here is resiprocate ares ares_gethostbyname.c
static void next_lookup(struct host_query *hquery)
{
int status;
const char *p;
struct hostent *host;
for (p = hquery->remaining_lookups; *p; p++)
{
switch (*p)
{
case 'b':
/* DNS lookup */
hquery->remaining_lookups = p + 1;
ares_search(hquery->channel, hquery->name, C_IN, T_A, host_callback,
hquery);
return;
................
You can grep AAAA in resiprocate ares and c-ares, and then you can the difference.
Frank
On Fri, Jan 27, 2012 at 9:44 AM, Scott Godin
<sgodin@xxxxxxxxxxxxxxx> wrote:
As far as I know the latest resip and ares should be supporting AAAA IPv6 host lookups fine. Are you compiling the stack with IPv6 support?
Scott
Hi,
I find that the ares of latest resiprocate release does not support AAAA of IPV6.
But c-ares of latest version supports it.
IPV6 will be more and more popular since the IPV4 address space will be used up soon.
Is there any schedule to implement it?
Frank
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/