描述
這對於透過查詢 CH 類別中特定網域名稱的 TXT 記錄,從伺服器檢索版本或作者資訊很有用。
語法
chaos [VERSION] [AUTHORS...]
- VERSION 是要傳回的版本。如果未設定,預設為
CoreDNS-<version>
。 - AUTHORS 是要傳回的作者。預設為 OWNERS 檔案中的所有 GitHub handles。
請注意,您必須確保此外掛程式將收到以下區域的實際查詢: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"
...