Hostname "masquerading"

Hi @ll,

I'm running ejabberd on Debian Etch using the contributed deb files.
Everything is running fine :), but I've got a question.

Is it possible to run an ejabberd server with 2 different hostnames but not in a VHOST situation?
My situation is this: The server is a local area network server which has got also full access to the Internet. I want my users to logon as username@localareaservername. In case if the internet is down they should still be able to logon overthere and talk to each other.

Of course they should ALL be allowed to talk to other Jabber servers via s2s which is currently working because I'm using the external domain name for the server which is called for example internetservername.

Can ejabberd manage that for example username@localareaservername can contact somebody@external.jabber.org and is shown as username@internetservername to external users?

the localareaservername is no domain in the Internet.
the internetservername is routed to the IP of the jabber server but not working when internet connection fails.

Thank you for your help.

Why do you have different

Why do you have different hostnames for the server? :-)

I do it like this:

  • WAN domain: example.org
  • My router forwards port 5269 (and 5222 and 5223) to my server in my LAN.
  • LAN domain: example.org
  • My router does DHCP and says to the clients that my server is the primary DNS server.
  • My server runs maraDNS
  • When a computer in my LAN tries to resolve example.org, it gets the local IP via my local maraDNS server (instead of the WAN IP!).

--
sander

Syndicate content