jdns in linux don't work if /etc/resolv.conf havе ipv6 nameservers only
psi unable to connect in pure ipv6 network (not dual stack ipv4+ipv6).
jdns unable to get ipv6 nameservers from /etc/resolv.conf
Bug possible in https://github.com/psi-im/iris/blob/master/src/jdns/jdns_sys.c#L756 using nscount instead of nscount6.
With my config (one ipv6 nameserver in resolv.conf) res_ninit (glibc 2.15) returns: res._ext.nscount = 0 res._ext.nscount6 = 1 res.nscount = 1
http://paste.kde.org/646892/
I agreed about nscount6 with latest glibc but I don't know when exactly it changed if ever worked, can you explain why ifdef JDNS_MODERN_RES_API?
why ifdef JDNS_MODERN_RES_API?
https://github.com/psi-im/iris/blob/master/src/jdns/jdns_sys.c#L703
that's not an answer. this API was introduced in more early version of glibc.
Because it is minimal change. JDNS_MODERN_RES_API hit modern linux like debian :P I think define new macro is not good idea. jdns is dead, and i assume jdns will be dropped after porting psi to qt5 with nice portable resolver. I want ipv6 to be working now.
btw is it working now as expected?
@shanechko: It works now?
@Neustradamus I'm not able to verify issue after 11 years. I don't have active xmpp account and native ipv6 connection.
BTW I will try to check.
@Neustradamus @Ri0n it works as expected, thanks!!
Psi v1.5.1973 (2024-06-15, e336abc3)