On Tue, Oct 23, 2012 at 7:27 AM, Patrick Twohig <[email protected]> wrote: > On this note, what exactly is the server entity property actually used for? > Correct me if I'm wrong, but it determines what domain the server is > hosting?
No. As far as I know, Vysper doesn't need DNS information about itself. However, when Vysper connects to remote servers, it uses DNS lookups. > It determines whether or not messages are routed locally or > externally correct? Yes, this is the primary use for it. This property specifies that accounts must have this domain part as a value and modules are addressed in this "namespace". For example the "chat" module for server entity "vysper.org" is addressed as "chat.vysper.org". > And in configuring my DNS the IP of the XMPP server > must also resolve to the domain part of the server entity. Is that correct? Not necessarily. You could explicitely connect to any server (using it's domain name or IP or "localhost") like many libs allow you to and try to authenticate with a different JID domain. Vysper would only accept this if the server entity property holds the different JID domain. Another way to look up XMPP servers are SRV records, see http://wiki.xmpp.org/web/SRV_Records . Bernd
