While Connecting to XMPP Server sometimes I get this exception any ideas how to fix this?

 org.jivesoftware.smack.SmackException$EndpointConnectionException: Could not lookup the following endpoints: RemoteConnectionEndpointLookupFailure(description='DNS lookup exception for chat-api.lumina.mba' exception='org.minidns.util.MultipleIoException: No DNS server could be queried, Did not receive an authoritative answer, nor did the result contain any glue records, Did not receive an authoritative answer, nor did the result contain any glue records'), RemoteConnectionEndpointLookupFailure(description='DNS lookup exception for chat-api.lumina.mba' exception='org.minidns.util.MultipleIoException: No DNS server could be queried, Did not receive an authoritative answer, nor did the result contain any glue records, Poll timed out, failed to connect to c.root-servers.net/2001:500:2::c (port 53) from /2404:c0:2c35:1f74:c95:fbfc:1bdd:f23e (port 39188) after 5000ms')
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:664)
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:849)
	at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:526)

Smack Version 4.4.6

The DNS lookup failed, which is often of sporadic nature. There are multiple strategies to mitigate this, like improve and/or persistant DNS caching, or adding a hardcoded IP address as fallback.

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.