baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

DNS resolution of CNAMEs fails often (not always) #487

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using prosody 0.9.8 on a Debian stable system, S2S connections involving CNAMEs 
often fail with "DNS resolution failed". Eventually, a link is constructed, 
though.

The problem happens with S2S connections involving CNAMEs, e.g. when joining 
conversations@conference.siacs.eu:

Apr 14 12:30:39 mod_s2s debug   First attempt to connect to 
conference.siacs.eu, starting with SRV lookup...
Apr 14 12:30:39 adns    debug   Records for 
_xmpp-server._tcp.conference.siacs.eu. not in cache, sending query (thread: 
0x2524940)...
Apr 14 12:30:39 adns    debug   Reply for 
_xmpp-server._tcp.conference.siacs.eu. (thread: 0x2524940)
Apr 14 12:30:39 mod_s2s debug   conference.siacs.eu has no SRV records, falling 
back to A/AAAA
Apr 14 12:30:39 adns    debug   Records for conference.siacs.eu not in cache, 
sending query (thread: 0x4bb08c0)...
Apr 14 12:30:39 adns    debug   Records for conference.siacs.eu not in cache, 
sending query (thread: 0x83b4ed0)...
Apr 14 12:30:39 adns    debug   Reply for conference.siacs.eu (thread: 
0x4bb08c0)
Apr 14 12:30:39 mod_s2s debug   Looking up jabber.siacs.eu. (DNS depth is 3)
Apr 14 12:30:39 adns    debug   Reply for conference.siacs.eu (thread: 
0x83b4ed0)
Apr 14 12:30:39 mod_s2s debug   DNS lookup failed to get a response for 
conference.siacs.eu
Apr 14 12:30:39 s2sout9b972a0   info    Out of connection options, can't 
connect to conference.siacs.eu
Apr 14 12:30:39 mod_s2s debug   No other records to try for conference.siacs.eu 
- destroying
Apr 14 12:30:39 s2sout9b972a0   debug   Destroying outgoing session 
yax.im->conference.siacs.eu: DNS resolution failed

And a later attempt succeeds:

Apr 14 12:34:04 mod_s2s debug   First attempt to connect to 
conference.siacs.eu, starting with SRV lookup...
Apr 14 12:34:04 adns    debug   Records for 
_xmpp-server._tcp.conference.siacs.eu. not in cache, sending query (thread: 
0x8764610)...
Apr 14 12:34:04 adns    debug   Reply for 
_xmpp-server._tcp.conference.siacs.eu. (thread: 0x8764610)
Apr 14 12:34:04 mod_s2s debug   conference.siacs.eu has no SRV records, falling 
back to A/AAAA
Apr 14 12:34:04 adns    debug   Records for conference.siacs.eu not in cache, 
sending query (thread: 0x87677d0)...
Apr 14 12:34:04 adns    debug   Records for conference.siacs.eu not in cache, 
sending query (thread: 0x39663e0)...
Apr 14 12:34:04 adns    debug   Reply for conference.siacs.eu (thread: 
0x87677d0)
Apr 14 12:34:04 mod_s2s debug   Looking up jabber.siacs.eu. (DNS depth is 3)
Apr 14 12:34:04 mod_s2s debug   DNS reply for conference.siacs.eu gives us 
137.226.142.20
Apr 14 12:34:04 adns    debug   Reply for conference.siacs.eu (thread: 
0x39663e0)
Apr 14 12:34:04 s2sout67711a0   info    Beginning new connection attempt to 
conference.siacs.eu ([137.226.142.20]:5269)

Original issue reported on code.google.com by aprsdr...@googlemail.com on 14 Apr 2015 at 10:49

GoogleCodeExporter commented 9 years ago
it works, please merge it

Original comment by aprsdr...@googlemail.com on 24 Apr 2015 at 12:07