[Psi-devel] IPv6 Support in Psi
Loren M. Lang
lorenl at north-winds.org
Thu Apr 12 14:38:59 PDT 2007
Justin Karneges wrote:
> On Thursday 12 April 2007 11:02 am, Loren M. Lang wrote:
>> Does that define I uncommented simply switch between QDns and NDns? And,
>> if so, are there any known limitations between the code paths, currently?
>
> NO_NDNS enables QDns (Q3Dns) for A/AAAA lookups. QDns is unmaintained, and
> has a history of being buggy, and so we try to minimize its usage. This is
> why the default behavior is to use QDns just for SRV (because we had no other
> option) and NDns for A records. For AAAA records, we made a special option
> (NO_NDNS) to enable usage of QDns in that case, since NDns cannot do AAAA.
>
NDns is just using gethostbyname() correct? I believe the correct fix
is to modify it to use getaddrinfo() instead. getaddrinfo() appears to
be able to resolve SRV records in addition to AAAA records. I can start
work on a patch to use getaddrinfo instead of gethostbyname()/QDns.
> Note that just because QDns might work fine with SRV does not mean it will
> work fine for A/AAAA. As noted in the message Norman dug out from 2004, QDns
> has/had a grave bug where enabling AAAA would break resolving entirely. This
> is why we never enabled NO_NDNS by default.
>
> -Justin
> _______________________________________________
> psi-devel mailing list
> psi-devel at lists.affinix.com
> http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com
>
--
Loren M. Lang
lorenl at north-winds.org
http://www.north-winds.org/
Public Key: ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20070412/ae3ab59b/attachment.pgp
More information about the psi-devel
mailing list