My first concern would be that you’re mixing usage of the XMPP domain name, and the fully qualified domain name of the server that is running Openfire.
The XMPP domain name is how, via XMPP, you identify your XMPP service, but also your users (eg: “example.org”, "email@example.com")
The fully qualified domain name of your server is its DNS name, typically configured in an DNS A record (eg: “myserver.example.org”)
The two values can but need not be the same. You can find both values for your XMPP server on the first page of the Openfire admin console after you logged into it.
When you log in with Spark, Spark will interpret the value that you use as an XMPP domain name. In order to determine the fully qualified domain name of the server (where it needs to connect to), it will:
- Use the manually provided values, if you disabled “Automatically discover host and port” in the Advanced Connection Preferences of Spark.
- Attempt a DNS SRV lookup (using the
_xmpp-client service identifier)
- Attempt to use the XMPP domain name value as the fully qualified domain name (works when the XMPP domain name and fully qualified domain name are equal)