Bug #5755

SRV issues

Added by n8fr8 over 2 years ago.

Status:NewStart date:09/09/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Component:

Description

I am coming to use ChatSecure with my personal XMPP server but I have connection problems when I try use SRV record settings.

- My XMPP server is prosody 0.9.8 running on standard ports
- My phone is CyanogenMod 11
- My ChatSecure is 14.2.0a but I have never been able to connect with any version of ChatSecure

If using the default settings for ChatSecure (use SRV records), ChatSecure never connects. If I disable "Do SRV Lookup" and manually configure server (host.example.org) and port (5222) ChatSecure works instantly.

I can connect to server with any desktop client - e.g. adium, pidgin, jitsi, gajim.

From looking at logcat, I can see ChatSecure trying to resolve example.org SRV records but gets it wrong

(DNS SRV) resolved: example.org=example.org:5222

when example.org should reslve to host.example.org

Output of "dig"

$ dig _xmpp-client._tcp.example.org SRV
; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> _xmpp-client._tcp.example.org SRV
;; global options: +cmd
;; Got answer:
;; >>HEADER<< opcode: QUERY, status: NOERROR, id: 123
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;_xmpp-client._tcp.example.org. IN SRV
;; ANSWER SECTION:
_xmpp-client._tcp.example.org. 1800 IN SRV 0 5 5222 host.example.org.
;; Query time: 117 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Tue Sep 07 12:42:20 PST 2015
;; MSG SIZE rcvd: 103

Also available in: Atom PDF