I have a lab setup trying to replicate and solve a problem at work. My configuration consists of three OpenFire 4.9 containers using the nasqueron/openfire:latest image running on Ubuntu 24.04.4 LTS.
hub - xmpp domain name: chat.somedomainname - ip: 10.0.0.10
site1 - xmpp domain name: site1.somedomainname - ip 10.0.0.11
site2 - xmpp domain name: site2.somedomainname - ip 10.0.0.12
I have set dnsutil.dnsOverride on the site1 and site2 servers, pointing the other domain to 10.0.0.10, trying to make them use the hub. Meanwhile on the hub, I have xmpp.gateway.enabled = true and xmpp.gateway.domains = site1.somedomainname,site2.somedomainname (comma separated, no spaces, no typos).
With this configuration, site1 and site2 throw error 404 during S2S connection test. However if I set my domain DNS to use the true IPs of the site servers, connection test succeeds and I can browse MUCs on the opposite site.
- internal DNS, all sites set to hub address (10.0.0.10): doesn’t work
- internal DNS, each site set to its true IP (10.0.0.10, 10.0.0.11, 10.0.0.12): all worky
- changing dnsutil.dnsOverride on spokes and hub node: no change
- changing xmpp.gateway.domains value on hub: no change
My current setup (in prod) uses some DNS query resolution policies to force this traffic through a load balancer and I’m trying to insert this XMPP gateway in the middle for data tagging and monitoring reasons. I’m not concerned about the DNS piece necessarily - I am also the DNS administrator for my environment and I’m well versed in the SRV and CNAME records I need to make this work. However this depends on the xmpp.gateway properties working as designed, and right now they are doing nothing. I need the hub to answer for site1 and site2, and I need the sites to use the hub to reach some external partners.
Thanks in advance!