问题标签 [srv]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
amazon-ecs - 使用 ECS 服务发现时如何在应用程序中解析 SRV 地址
我在 ECS 上作为单独的服务启动了几个微服务,并使用 nginx 进行反向代理。我在桥接模式下使用 ECS 任务定义,因此服务发现只生成 SRV 地址。如何解析 SRV 地址以进行端口转发?SRV 记录创建为 app.microservices.local
我知道有人问过类似的问题,但我无法为我的申请找到解决方案
django - 由于 SRV 错误,MongoDB 无法在本地工作(无答案)
情况
我们正在开发项目的后端,该项目由用 Django 和 FastAPI 编写的两个服务组成。两种服务都使用 MongoDB 作为其数据库系统。
在 Django 中,我们使用djongo==1.3.0
ORM 兼容性。
在 FastAPI 中,我们使用odmantic==0.3.4
.
这两个库都pymongo==3.11.3
在下面使用。
自从我们创建 Django 服务以来,这个 MongoDB SRV 错误一直是一个问题,但我们设法通过不使用最新的包以某种方式解决它,例如:
最近由于安全风险我们不得不升级:
urllib3 from 1.25.8 to 1.26.5
pydantic from 1.8.1 to 1.8.2
Django from 2.2.20 to 2.2.22
这些是 GitHub 的dependabot建议的。
问题
当我们现在在本地运行任何这些服务时,它们会因以下基本异常而中断:
Django 的完整日志:
FastAPI 的完整日志:
在我们在 GitHub Actions 上的 CI 设置中,Django 服务测试仍然成功运行。很明显,问题出在 DNS 方面。
问题
- 是否有任何不支持 MongoDB 的特定 DNS 服务器?我
8.8.8.8
在它坏掉之前和之后都在使用谷歌。 - 为什么升级列出的依赖项会导致问题?仅
urllib
针对两种服务进行了升级。 - 有什么解决方法吗?
linux - SRV 查找请求不返回 IP 地址
我正在编写一个 XMPP 客户端。RFC说我需要使用 SRV 查询连接到服务器(例如这个)。
当我使用trust_dns_resolver板条箱这样做时,查询似乎是空的。这是正常行为吗?
dig SRV _xmpp-client._tcp.xmpp.jp
命令行返回以下内容:
我将拥有三个 IP 地址对吗?
我想我误解了什么,但我不知道是什么。
dns - 使用父域查询子域的 DNS SRV
我正在编写一个应用程序来查询 DNS SRV 记录,以找出从电子邮件地址获得的域的内部服务。执行以下操作是否正确。
- 假设电子邮件域是 test.example.com
- 查询SRV记录_service._tcp.test.example.com
- 没有返回 SRV 记录
- 现在查询 SRV 记录 _service._tcp.example.com
- 返回一条记录。因此使用此记录连接
上述方法对吗?假设不是,是否有任何 RFC 或标准阻止应用程序执行此操作?
dns - 多少 DNS SRV 记录太多了?
令人惊讶的是,我似乎无法在 Google 搜索中找到这个问题的答案。
SRV 记录集中有多少记录太多?
10、50 100?
如果我想提供一个主机名来平衡同一物理位置的 50 台服务器,那么如何最好地做到这一点?
如何将其扩展到 100 台服务器?
websocket - On public XMPP servers, how do you find which port supports websockets?
Opening a websocket without a port specified seems to fail on all xmpp servers. I assume this means there is no default websocket port.
I have been able to only open one xmpp server's websocket. It does not appear other xmpp servers use the same 5291 websocket port as tigase.im
How do you determine the websocket port for a public XMPP server? The lists of open xmpp servers seem to only give a url.
I at first tried DNS SRV lookup using DNSchecker.org which showed no SRV record.
As I learned more about DNS SRV lookup formats by reading RFC 6120, I found I can get the tcp port using mxtoolbox.com with the string: _xmpp-client._tcp.tigase.im
On a hunch, I tried _xmpp-client._websocket.tigase.im, but no port was returned. On further reading, the IETF specified to try the string _ws._tcp.tigase.im which also returned nothing using mxtoolbox.com Is there a different string I should be using with mxtoolbox.com?
Is there another way to get the websocket port number of a public XMPP server?