New plugin proposal: Unbound Catalog Sync (RFC 9432)

オープン
#5,968 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php, python
領域
devops, networking

調査の方向性

This is a proposal for a new plugin, not a defined change, so there is no existing file or failing test to start from. Read the OPNsense plugins CONTRIBUTING.md and the existing dns plugins to see how an MVC page is laid out. Done means the maintainers have agreed on scope and a first reviewable submission is identified; the design discussion belongs in the thread first.

索引モデルが issue の本文から書いたものです。

説明

support

Important notices

  • I have read the contributing guidelines.
  • I searched open and closed issues and pull requests in opnsense/plugins and opnsense/core for DNS Catalog Zones and RFC 9432.
  • This is a proposal for a new plugin.

Problem

When authoritative DNS hosts many internal zones across several OPNsense resolvers, maintaining a matching set of Unbound Stub Zones by hand makes zone changes easy to miss. Authoritative servers such as PowerDNS can already publish zone membership in an RFC 9432 catalog.

Proposal

Would you be open to an optional dns/unbound-catalog plugin that consumes an RFC 9432 catalog by AXFR and reconciles Unbound Stub Zones from its membership? An OPNsense MVC page under Services → Unbound DNS → Catalog Sync would let operators configure the catalog and authoritative endpoints, inspect per-zone status, and exclude individual zones. Unbound would continue to resolve member records directly from the configured authoritative servers. The implementation keeps the last valid catalog through transfer failures and preserves administrator-managed Unbound settings.

The standalone prototype also supports source-restricted DNS NOTIFY. Before opening a PR, I’d welcome feedback on whether this fits the plugins collection and whether catalog polling, stub reconciliation and basic status would make a good first reviewable submission.

Alternatives considered

Manual Unbound configuration works for smaller deployments but has to be updated on each resolver when membership changes. Query forwarding works when there is a recursive upstream; this use case has authoritative-only servers.

Additional context

The BSD-2-Clause prototype uses an MVC/configd integration and a Python worker shipped as source. Version 1.2.2 targets OPNsense 26.7 on amd64. Tests cover catalog transfers and live resolution with BIND, PowerDNS Authoritative and Unbound. Source · v1.2.2 release · Integration tests

AI disclosure: OpenAI Codex (GPT-6) assisted with the prototype, tests, documentation, and this proposal.

主要言語
PHP
スター
1.2k
フォーク
932
平均マージ
1日 11時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opnsense/plugins のほかの issue

opnsense/plugins の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。