mod_muc must use a separate host?

Hello! I'm setting up a very small Jabber server; it should not hold any accounts except one admin and serve just as a conference server for a small group of users. After some fiddling with the configuration, I get the impression that one must choose a different "host" for mod_muc than for the rest of the Jabber server. That is, if my one admin user is admin@myserver.net, I must not call the mod_muc host "myserver.net", but for example "conference.myserver.net".

In the manual, I read that the "host" option defines the "Jabber ID of the service". Obviously, the conference service needs a dedicated service name. Does this imply that there must be a "real host name", configured in the DNS, behind that?

Is my understanding correct? I would have liked to just use one host name, but if one needs two, no problem.

why can't u create a CNAME

why can't u create a CNAME record in dns for conference.myserver.net to point to mysever.net?

That's analogous to what I

That's analogous to what I did; I created two DNS entries with the same IP address in the A record.

It boils down to the same thing: I have to configure two domain names.

cato_minor wrote: one must

cato_minor wrote:

one must choose a different "host" for mod_muc than for the rest of the Jabber server. That is, if my one admin user is admin@myserver.net, I must not call the mod_muc host "myserver.net", but for example "conference.myserver.net".

there must be a "real host name", configured in the DNS, behind that?

Right. The typical example configuration is:

{hosts, ["example.org"]}.
{modules, ]
  {mod_muc, [
    {host, "conference.example.org"},
    ...
  ]},
  ...
]}.

Notice that this is also possible:

{hosts, ["jabber.example.org"]}.
{modules, ]
  {mod_muc, [
    {host, "example.org"},
    ...
  ]},
  ...
]}.

That strange configuration works for me in my local machine. I never tried it over Internet, with DNS setups, etc.

I succeeded with something

I succeeded with something analogue to your second, "strange" configuration:

{hosts, ["users.chat.myserver.net"]}.
{modules, ]
  {mod_muc, [
    {host, "chat.myserver.net"},
    ...
  ]},
  ...
]}.

Works fine with real DNS addresses :-)

Syndicate content