@rotemu There are actually two names involved, the XMPP name and the HTTP(S) name. You can set http_host = "example.com" to reuse the same domain name in the HTTP(S) layer. The XMPP name does not need any DNS since it only needs to be routable inside Prosody and discoverable by local clients. Subdomains are automatically made discoverable, but it can be made manual with disco_items, see https://prosody.im/doc/modules/mod_disco