Direct query to the server for a zone's SOA record fails
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 74/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- php
- 领域
- networking
调研方向
从 Utopia\DNS\Zone\Resolver::lookup() 开始,在零查询检查之后、选择最佳匹配记录之前。验证查询类型为 SOA 且名称与 zone 匹配时的行为;完成标准是响应返回该 zone 的 SOA 记录,并带有 NOERROR 和权威状态,而不是 NXDOMAIN。
由索引模型根据 Issue 内容生成。
描述
A query to the server for a zone's own SOA record returns NXDOMAIN, when I would expect it to return the SOA record for the zone. This appears to happen because the SOA record is in the Zone's soa property, not an element of the Zone's records array, so a match is not found by lookup() in Utopia\DNS\Zone\Resolver.
A possible fix would be to add an explicit check for a query for the SOA record in Utopia\DNS\Zone\Resolver::lookup() after the check for zero queries, just before selecting the best matching records.
// Return the zone's SOA record
if (($question->type === Record::TYPE_SOA) && ($question->name === $zone->name) {
return Message::response(
header: $query->header,
responseCode: Message::RCODE_NOERROR,
questions: $query->questions,
answers: [$zone->soa],
authoritative: true,
recursionAvailable: false
);
}
- 主要语言
- PHP
- 星标
- 10
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
needs-triage Technical TODO
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
question
难度 2/5 1-3 小时 新手友好度 66/100
PrivateBin/docker-nginx-fpm-alpine#264 · 1 条评论 ·
-
Fix test suite isolation by cleaning up registered theme directories and cache in teardown可能已有人在做 @CookieDarb 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
WordPress/create-block-theme#895 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
Piwigo/piwigo-docker#19 · 1 个 reaction ·
-
[Store][SurrealDb] add(), query() and remove() fail with 403 on a fresh store instance可能已有人在做 @lazerg 今天认领。 未关闭Bug Status: Needs Review Store
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复