Need the clarity regarding domain in first login of spark

How i need to create user name and domain
Whether the domain will be our domain name which we purchased from any of the digital marketing concern or our website connected server name
Kindly clarify the doubts to use this tool

An XMPP services users “john” of an XMPP domain (“example.org”), and is typically installed on a server that has a hostname (“xmppserver.example.org”) and an IP address (“203.0.113.12”).

Conceptually, this is similar to an email service, for example.

When you log in to an XMPP client (such as Spark), you will provide the username (“john”) and the XMPP domain name (“example.org”) of the service that you want to log in with.

The client will then look up a hostname (“xmppserver.example.org”) of a server that provides the XMPP service for the requested domain. This uses DNS SRV records. If those are not available, then all clients that I know will try to reach the XMPP domain on a server that has a hostname that matches the XMPP domain name. Many clients will also allow end-users to explicitly configure the hostname of the server to connect to.

Finally, a very standard DNS A record lookup is used to find the IP address (“203.0.113.12”) for the hostname that was found above. That is when a connection attempt can be performed.

If you need to register a public domain name depends on your needs. If you want your users to be able to connect over the public internet, then this is probably a requirement, yes.

On top of this all, it is very advisable to also buy a TLS certificate that covers both the XMPP domain name, as well a the hostname of the server (and ideally, all subdomains of the XMPP domain name). Without this, most clients will not be able to establish a secure connection. Many clients can be configured to accept insecure connections, or self-signed certificates, but this is far from ideal from a security perspective, and often very confusing for end-users.