[ejabberd] remote-server-not-found, but DNS entry is there

Marvin Gülker m-guelker at phoenixmail.de
Fri Jan 26 23:54:39 MSK 2018


Hi everyone,

I've got a mysterious problem with my ejabberd installation. It's a
stock Debian stable 16.09 ejabberd from the package repository.

I run the XMPP server for the domain phoenixmail.de, and I have a friend
who runs another XMPP server for the domain sydev.us. He uses prosody in
an unknown version. I very often (but not always) get a
<remote-server-not-found/> XMPP error when I try to send him
messages. I've enabled debug logs on ejabberd and see what is shown
at the bottom of this message. This shows that ejabberd appearently
can't resolve sydev.us. The server runs its own recursive nameserver
(unbound), but that one does things fine -- it is listed in
/etc/resolv.conf and does it's job as I have verified with dig.
There's no SRV record, but only an A/AAAA record.

Conversely, I am appearently always offline to him. If ejabberd refuses
to talk to the server at sydev.us, that's probably natural, though.

I have no such problems with users of other servers, but all my other
contacts use servers that have an SRV record. Is this a bug in ejabberd,
or am I just obverlooking something obvious?

Greetings
Marvin

---- Dig queries ----

# dig _xmpp-server._tcp.sydev.us SRV

; <<>> DiG 9.10.3-P4-Debian <<>> _xmpp-server._tcp.sydev.us SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 46661
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;_xmpp-server._tcp.sydev.us.    IN      SRV

;; AUTHORITY SECTION:
sydev.us.               405     IN      SOA
dns1.registrar-servers.com. hostmaster.registrar-servers.com. 2017111301
43200 3600 604800 3601

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jan 26 20:50:11 UTC 2018
;; MSG SIZE  rcvd: 128


# dig sydev.us A

; <<>> DiG 9.10.3-P4-Debian <<>> sydev.us A
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35398
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;sydev.us.                      IN      A

;; ANSWER SECTION:
sydev.us.               527     IN      A       192.209.62.148

;; AUTHORITY SECTION:
sydev.us.               528     IN      NS
dns1.registrar-servers.com.
sydev.us.               528     IN      NS
dns2.registrar-servers.com.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jan 26 20:50:36 UTC 2018
;; MSG SIZE  rcvd: 112

---- ejabberd.log excerpt follows ----

2018-01-26 20:36:34.344 [info] <0.528.0>@ejabberd_s2s_out:open_socket:246 s2s connection: phoenixmail.de -> sydev.us (remote server not found)
2018-01-26 20:36:34.344 [debug] <0.528.0>@ejabberd_router:do_route:351 route
        from {jid,<<"sydney">>,<<"sydev.us">>,<<>>,<<"sydney">>,<<"sydev.us">>,<<>>}
        to {jid,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>}
        packet {xmlel,<<"presence">>,[{<<"type">>,<<"error">>},{<<"to">>,<<"m-guelker at phoenixmail.de/Gajim_">>},{<<"from">>,<<"sydney at sydev.us">>}],[{xmlel,<<"error">>,[{<<"code">>,<<"404">>\
},{<<"type">>,<<"cancel">>}],[{xmlel,<<"remote-server-not-found">>,[{<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-stanzas">>}],[]}]}]}
2018-01-26 20:36:34.345 [debug] <0.528.0>@ejabberd_local:do_route:265 local route
        from {jid,<<"sydney">>,<<"sydev.us">>,<<>>,<<"sydney">>,<<"sydev.us">>,<<>>}
        to {jid,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>}
        packet {xmlel,<<"presence">>,[{<<"type">>,<<"erro"...>>},{<<"to">>,<<...>>},{<<...>>,...}],[{xmlel,<<...>>,...}]}
2018-01-26 20:36:34.345 [debug] <0.528.0>@ejabberd_sm:do_route:463 session manager
        from {jid,<<"sydney">>,<<"sydev.us">>,<<>>,<<"sydney">>,<<"sydev.us">>,<<>>}
        to {jid,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>}
        packet {xmlel,<<"presence">>,[{<<"type">>,<<"erro"...>>},{<<"to">>,<<...>>},{<<...>>,...}],[{xmlel,<<...>>,...}]}
2018-01-26 20:36:34.345 [debug] <0.528.0>@ejabberd_sm:do_route:588 sending to process <0.527.0>
2018-01-26 20:36:34.346 [debug] <0.528.0>@ejabberd_router:do_route:351 route
        from {jid,<<"sydney">>,<<"sydev.us">>,<<>>,<<"sydney">>,<<"sydev.us">>,<<>>}
        to {jid,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>}
        packet {xmlel,<<"presence">>,[{<<"type">>,<<"error">>},{<<"to">>,<<"m-guelker at phoenixmail.de/Gajim_">>},{<<"from">>,<<"sydney at sydev.us">>},{<<"xml:lang">>,<<"de">>},{<<"id">>,<<"6f43\
2474-7234-4d73-a9eb-ff2da8f8f619">>}],[{xmlel,<<"priority">>,[],[{xmlcdata,<<"50">>}]},{xmlel,<<"x">>,[{<<"xmlns">>,<<"vcard-temp:x:update">>}],[{xmlel,<<"photo">>,[],[]}]},{xmlel,<<"c">>,[{\
<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://gajim.org">>},{<<"ver">>,<<"5dqMCUkkqslG+FyxXud/eU2Xz1k=">>},{<<"hash">>,<<"sha-1">>}],[]},{xmlel,<<"error">>,[{<<"co\
de">>,<<"404">>},{<<"type">>,<<"cancel">>}],[{xmlel,<<"remote-server-not-found">>,[{<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-stanzas">>}],[]}]}]}
2018-01-26 20:36:34.346 [debug] <0.528.0>@ejabberd_local:do_route:265 local route
        from {jid,<<"sydney">>,<<"sydev.us">>,<<>>,<<"sydney">>,<<"sydev.us">>,<<>>}
        to {jid,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>}
        packet {xmlel,<<"presence">>,[{<<"type">>,<<"erro"...>>},{<<"to">>,<<...>>},{<<...>>,...},{...}|...],[{xmlel,<<...>>,...},{xmlel,...},{...}|...]}
2018-01-26 20:36:34.346 [debug] <0.528.0>@ejabberd_sm:do_route:463 session manager
        from {jid,<<"sydney">>,<<"sydev.us">>,<<>>,<<"sydney">>,<<"sydev.us">>,<<>>}
        to {jid,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>,<<"m-guelker">>,<<"phoenixmail.de">>,<<"Gajim_">>}
        packet {xmlel,<<"presence">>,[{<<"type">>,<<"erro"...>>},{<<"to">>,<<...>>},{<<...>>,...},{...}|...],[{xmlel,<<...>>,...},{xmlel,...},{...}|...]}
2018-01-26 20:36:34.346 [debug] <0.528.0>@ejabberd_sm:do_route:588 sending to process <0.527.0>
2018-01-26 20:36:34.347 [debug] <0.527.0>@ejabberd_c2s:send_text:1915 Send XML on stream = <<"<presence from='sydney at sydev.us' to='m-guelker at phoenixmail.de/Gajim_' type='error'><error code='\
404' type='cancel'><remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></presence>">>
2018-01-26 20:36:34.367 [debug] <0.535.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<>>
2018-01-26 20:36:34.367 [debug] <0.533.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<>>
2018-01-26 20:36:34.367 [debug] <0.527.0>@ejabberd_c2s:send_text:1915 Send XML on stream = <<"<presence from='sydney at sydev.us' to='m-guelker at phoenixmail.de/Gajim_' type='error' xml:lang='de'\
 id='6f432474-7234-4d73-a9eb-ff2da8f8f619'><priority>50</priority><x xmlns='vcard-temp:x:update'><photo/></x><c xmlns='http://jabber.org/protocol/caps' node='http://gajim.org' ver='5dqMCUkkq\
slG+FyxXud/eU2Xz1k=' hash='sha-1'/><error code='404' type='cancel'><remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></presence>">>

-- 
Blog: https://mg.guelker.eu
PGP/GPG ID: F1D8799FBCC8BC4F


More information about the ejabberd mailing list