R. Mattes
2012-11-06 16:01:11 UTC
Dear list wisdom,
I'm experiencing a rather strange problem with my xmpp client.
As long as I'm connected to the network the code does run fine,
but as soon as I try to use it offline the client never establishes a
connection to the server. Running the application with output to stdout
I get the following error:
....
2012-11-06 16:49:24+0100 [-] DNSDatagramProtocol starting on 17787
2012-11-06 16:49:24+0100 [-] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1b5e710>
2012-11-06 16:49:24+0100 [-] (UDP Port 64994 Closed)
2012-11-06 16:49:24+0100 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1b65850>
....
ad infinitum ....
Strangely, after further investigation it seems as if the code tries
to resolve "localhost" (the client tries to connect to a local ejabberd
installation). Now, the hostname "localhost" does resolve on this machine
(both ping and a paramiko-SSH connect from the twisted programm do work).
Localhost is configured in /etc/hosts like this:
127.0.0.1 localhost
and /etc/hosts is enabled in /etc/nsswitch.conf like this:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
(standard Debian setup, IIRC).
Any idea what goes wrong here?
TIA Ralf Mattes
--
R. Mattes -
Hochschule fuer Musik Freiburg
***@inm.mh-freiburg.de
I'm experiencing a rather strange problem with my xmpp client.
As long as I'm connected to the network the code does run fine,
but as soon as I try to use it offline the client never establishes a
connection to the server. Running the application with output to stdout
I get the following error:
....
2012-11-06 16:49:24+0100 [-] DNSDatagramProtocol starting on 17787
2012-11-06 16:49:24+0100 [-] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1b5e710>
2012-11-06 16:49:24+0100 [-] (UDP Port 64994 Closed)
2012-11-06 16:49:24+0100 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1b65850>
....
ad infinitum ....
Strangely, after further investigation it seems as if the code tries
to resolve "localhost" (the client tries to connect to a local ejabberd
installation). Now, the hostname "localhost" does resolve on this machine
(both ping and a paramiko-SSH connect from the twisted programm do work).
Localhost is configured in /etc/hosts like this:
127.0.0.1 localhost
and /etc/hosts is enabled in /etc/nsswitch.conf like this:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
(standard Debian setup, IIRC).
Any idea what goes wrong here?
TIA Ralf Mattes
--
R. Mattes -
Hochschule fuer Musik Freiburg
***@inm.mh-freiburg.de