我的 xmpp 应用程序如何与 Google Apps 用户联合而不让他们创建 SRV 记录?

发布于 2024-10-16 05:19:51 字数 542 浏览 3 评论 0原文

我有一个使用 Prosody 和 XMPP 与 Google Talk 用户进行通信的应用程序。我希望该应用程序能够与 Goole Apps 用户进行通信,但根据此文档:

http://www.google.com/support/a/bin/answer.py?hl=zh-CN&answer=34143

让 Google Apps 用户与外部的任何 xmpp 客户端通信@gtalk.com 的 需要创建 SRV 记录。

我的问题是:我的应用程序如何与 Google Apps 用户对话(无需/要求他们为其域创建 DNS 记录)? (这是高度技术性的,没有人这样做。)

是否有某种方法可以欺骗我的服务器与 Google 的 XMPP 服务器通信,而不是寻找不存在的 XMPP 端点?

这可能需要一个创造性的解决方案……主机文件、防火墙、特殊的 DNS 设置……什么?是否可以??

I have an application that uses Prosody and XMPP to communicate with Google Talk users. I want the app to be able to communicate with Goole Apps users, but according to this document:

http://www.google.com/support/a/bin/answer.py?hl=en&answer=34143

having Google Apps users talk to any xmpp client outside of @gtalk.com requires creating SRV records.

My question is: How can my app talk to Google Apps users /without/ requiring them to create DNS records for their domain? (This is highly technical and no one does this.)

Is there some way to trick my server into talking to Google's XMPP server instead of looking for a non-existent XMPP endpoint?

This may require a creative solution.. hosts file, firewalls, special DNS settings... anything? Is it possible??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你再特殊 2024-10-23 05:19:51

将您的 XMPP 服务器配置为与本地 DNS 服务器通信,该服务器提供您想要的任何 SRV 记录。我建议 dnsmasq,配置如下:

# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv

# A SRV record sending XMPP for the example.com domain to
# xmpp-server.l.google.com port 5269

srv-host=_xmpp-server._tcp.example.com,xmpp-server.l.google.com,5269,5
srv-host=_xmpp-server._tcp.example.com,xmpp-server1.l.google.com,5269,20
srv-host=_xmpp-server._tcp.example.com,xmpp-server2.l.google.com,5269,20
srv-host=_xmpp-server._tcp.example.com,xmpp-server3.l.google.com,5269,20
srv-host=_xmpp-server._tcp.example.com,xmpp-server4.l.google.com,5269,20

Have your XMPP server configured to talk to a local DNS server that serves up whatever SRV records you want. I suggest dnsmasq, with a configuration like this:

# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv

# A SRV record sending XMPP for the example.com domain to
# xmpp-server.l.google.com port 5269

srv-host=_xmpp-server._tcp.example.com,xmpp-server.l.google.com,5269,5
srv-host=_xmpp-server._tcp.example.com,xmpp-server1.l.google.com,5269,20
srv-host=_xmpp-server._tcp.example.com,xmpp-server2.l.google.com,5269,20
srv-host=_xmpp-server._tcp.example.com,xmpp-server3.l.google.com,5269,20
srv-host=_xmpp-server._tcp.example.com,xmpp-server4.l.google.com,5269,20
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文