说明
通过在 CH 类中查询特殊域名来从服务器中检索版本或作者信息时,此功能很有用。
语法
chaos [VERSION] [AUTHORS...]
- VERSION 是要返回的版本。如果未设置,则默认为
CoreDNS-<version>。 - AUTHORS 是要返回的作者。这默认为 OWNERS 文件中的所有 GitHub 处理程序。
请注意,您必须确保此插件将针对以下区域获得实际查询:version.bind、version.server、authors.bind、hostname.bind 和 id.server。
示例
完整指定所有区域。
version.bind version.server authors.bind hostname.bind id.server {
chaos CoreDNS-001 info@coredns.io
}
或仅默认为 .。
. {
chaos CoreDNS-001 info@coredns.io
}
并使用 dig 测试
% dig @localhost CH TXT version.bind
...
;; ANSWER SECTION:
version.bind. 0 CH TXT "CoreDNS-001"
...