ejabberd - Comments for "ejabberd Cannot Connect to Some Servers: Fix DNS SRV" https://www.ejabberd.im/fix-dns-srv en a 4th solution https://www.ejabberd.im/fix-dns-srv#comment-54491 <p>A found a 4th solution here</p> <p><noindex><a href="http://easyerl.blogspot.com/2007/06/configuring-your-dns-server-for-inetres.html" title="http://easyerl.blogspot.com/2007/06/configuring-your-dns-server-for-inetres.html" rel="nofollow" >http://easyerl.blogspot.com/2007/06/configuring-your-dns-server-for-inet...</a></noindex></p> <p>you can put</p> <p>inet_db:add_ns({208,67,220,220}). </p> <p>in the application code. worked on windows!</p> Fri, 24 Jul 2009 20:51:34 +0000 secrecys comment 54491 at https://www.ejabberd.im editing hosts https://www.ejabberd.im/fix-dns-srv#comment-51577 <p>editing hosts worked for me but it needed some time and a dns flush to take effect...<br /> I only tried with jabber.ccc.de though. Didn't test with gmail.</p> Mon, 07 Jan 2008 16:01:28 +0000 the Joe comment 51577 at https://www.ejabberd.im Still no luck on Windows platform https://www.ejabberd.im/fix-dns-srv#comment-51461 <p>Unfortunately, it seems like this problem still persists, and I haven't found any solution for windows platform. Windows version uses inetrc.win file, and the only string there is</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>{registry, win32}.</p></div> <p>So variant #1 isn't acceptable. Modifying hosts file doesn't help either, and doesn't look like a good solution too. My server can communicate with other jabber servers, but I get "remote server not found" error when I try to get to GTalk.<br /> I tried using "-name" and "-sname" options but with no luck. Both return</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>{error, timeout}</p></div> <p>Maybe somebody has any ideas? I'm using ejabberd 1.1.4_2.</p> Thu, 13 Dec 2007 17:29:07 +0000 ademura comment 51461 at https://www.ejabberd.im So, which of these solutions https://www.ejabberd.im/fix-dns-srv#comment-51192 <p>So,</p> <p>which of these solutions works on a windows installation?<br /> Only editing the system's hosts?</p> <p>Also: inetrc is not used on windows, and inetrc.win doesn't seem to do anything.</p> Thu, 08 Nov 2007 19:21:56 +0000 some NT user comment 51192 at https://www.ejabberd.im dnsmasq s2s conections problem https://www.ejabberd.im/fix-dns-srv#comment-50893 <p>thx man, how did you find out? spended hours to find out why i can't connect to all jabber-servers. it was a stupid openwrt update i did recently. is bogus-priv in there save?</p> Tue, 18 Sep 2007 12:32:29 +0000 jamatik comment 50893 at https://www.ejabberd.im correct order in /etc/hosts file https://www.ejabberd.im/fix-dns-srv#comment-50586 <p>There is no order difference between the hosts file in Unix/Linux and Windows. Both are putting the <strong>IP first</strong> then the DNS names and aliases latter.</p> Thu, 13 Sep 2007 09:29:32 +0000 Progfou comment 50586 at https://www.ejabberd.im dnsmasq filterwin2k https://www.ejabberd.im/fix-dns-srv#comment-50546 <p>I just spent a couple of hours scratching my head trying to figure out why I couldn't get a s2s connection to gtalk to work - turns out it was dnsmasq - the "filterwin2k" option stops it forwarding SRV requests.</p> Mon, 03 Sep 2007 14:21:50 +0000 Scott Lees comment 50546 at https://www.ejabberd.im I figured this out: it needs https://www.ejabberd.im/fix-dns-srv#comment-30472 <p>I figured this out: it needs the quotes, so they must be escaped from the shell. In the start script, the string is already quoted, so the backslashes must also be escaped so that they will be passed through. Thus:</p> <p>$ su ejabberd -c "/usr/sbin/ejabberd -kernel inetrc \\\"/etc/ejabberd/inetrc\\\" -noshell -detached"</p> <p>in the start script works.</p> Sun, 22 Jul 2007 17:42:00 +0000 K comment 30472 at https://www.ejabberd.im Can I ask for a https://www.ejabberd.im/fix-dns-srv#comment-30471 <p>Can I ask for a clarification? When you say "add the following to your ejabberd command line", should that be added to</p> <p>$ su ejabberd -c "/usr/sbin/ejabberd -noshell -detached"</p> <p>like this:</p> <p>$ su ejabberd -c "/usr/sbin/ejabberd -kernel inetrc \"/etc/ejabberd/inetrc\" -noshell -detached"</p> <p>It seems to fail to start when I do so.</p> <p>Being thoroughly unfamiliar with erlang, I'm afraid I don't know what debugging information might help, but I'll be glad to provide any.</p> Sun, 22 Jul 2007 15:46:13 +0000 K comment 30471 at https://www.ejabberd.im Problem reappeared https://www.ejabberd.im/fix-dns-srv#comment-3589 <p>I used the second fix above (altering the hosts file) back in January to make my ejabberd 1.0.0 (I think -- is there any easy to find out?) talk to GTalk, but it seems to have stopped working.</p> <p>In Psi, I use service discovery from my server and it can see other Jabber servers (eg Jabber.org or jabber.dk but when I try googlemail.com it never resolves (the spinner keeps spinning).</p> <p>When I try doing service disco from GTalk (I have that set up as an account in Psi) to my server, I get this error: "There was an error getting agents for . Reason: "</p> <p>This is the line in my hosts file:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>216.239.37.125 gmail.com googlemail.com</p></div> <p>Any ideas?</p> <p>Edit: never mind: updating the IP address to the new one for talk.google.com (209.85.137.125) fixed it.</p> Wed, 18 Apr 2007 15:50:23 +0000 raj@arwen.iteu.gla.ac.uk comment 3589 at https://www.ejabberd.im Tested and failed: not solved https://www.ejabberd.im/fix-dns-srv#comment-1882 <p>I tried with both Erlang R10B-10 and R11B-0 compiled from source, and the results are the same:</p> <pre>$ erl -sname qwe Erlang (BEAM) emulator version 5.5 [source] [async-threads:0] [hipe] Eshell V5.5 (abort with ^G) (qwe@atenea)1&gt; inet_res:getbyname("_xmpp-server._tcp.jabber.ru",srv). {error,timeout}</pre><p> Of course it works correctly, as usual, when using -name:</p> <pre>$ erl -name qwe Erlang (BEAM) emulator version 5.5 [source] [async-threads:0] [hipe] Eshell V5.5 (abort with ^G) (<noindex><a href="mailto:qwe@atenea.pike" rel="nofollow" >qwe@atenea.pike</a></noindex>)1&gt; inet_res:getbyname("_xmpp-server._tcp.jabber.ru",srv). {ok,{hostent,"_xmpp-server._tcp.jabber.ru",[],srv,1,[{0,0,5269,"jabber.ru"}]}}</pre><p> So I guess it isn't solved yet.</p> Mon, 19 Jun 2006 07:54:33 +0000 mfoss comment 1882 at https://www.ejabberd.im You can easily test it. Just https://www.ejabberd.im/fix-dns-srv#comment-1881 <p>You can easily test it. Just run nondistributed erlang or erlang with short name (erl or erl -name qwerty) and try the following:</p> <pre>inet_res:getbyname("_xmpp-server._tcp.jabber.ru",srv).</pre><p>If the result is</p> <pre>{error, timeout}</pre><p> then this bug isn't fixed.</p> Mon, 19 Jun 2006 06:32:55 +0000 teo comment 1881 at https://www.ejabberd.im R11B https://www.ejabberd.im/fix-dns-srv#comment-1880 <p>Out of interest, did Erlang R11B fix this bug?</p> Mon, 19 Jun 2006 06:16:26 +0000 trejkaz comment 1880 at https://www.ejabberd.im