iris icon indicating copy to clipboard operation
iris copied to clipboard

jdns in linux don't work if /etc/resolv.conf havе ipv6 nameservers only

Open shanechko opened this issue 12 years ago • 8 comments

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

shanechko avatar Jan 13 '13 13:01 shanechko

http://paste.kde.org/646892/

shanechko avatar Jan 15 '13 21:01 shanechko

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?

Ri0n avatar Apr 29 '13 03:04 Ri0n

why ifdef JDNS_MODERN_RES_API?

https://github.com/psi-im/iris/blob/master/src/jdns/jdns_sys.c#L703

shanechko avatar May 06 '13 21:05 shanechko

that's not an answer. this API was introduced in more early version of glibc.

Ri0n avatar May 07 '13 07:05 Ri0n

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.

shanechko avatar May 26 '13 22:05 shanechko

btw is it working now as expected?

Ri0n avatar Jan 30 '19 19:01 Ri0n

@shanechko: It works now?

Neustradamus avatar May 15 '24 11:05 Neustradamus

@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.

shanechko avatar May 15 '24 12:05 shanechko

@Neustradamus @Ri0n it works as expected, thanks!!

Psi v1.5.1973 (2024-06-15, e336abc3)

shanechko avatar Jun 15 '24 23:06 shanechko