我的 xmpp 应用程序如何与 Google Apps 用户联合而不让他们创建 SRV 记录?
我有一个使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您的 XMPP 服务器配置为与本地 DNS 服务器通信,该服务器提供您想要的任何 SRV 记录。我建议 dnsmasq,配置如下:
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: