plugin/auto: warn on duplicate zone file origins (#8191)

Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
houyuwushang
2026-06-29 15:59:23 +08:00
committed by GitHub
parent 70f7922ec5
commit 4faf983fb6
3 changed files with 61 additions and 3 deletions

View File

@@ -28,7 +28,8 @@ are used.
like `{<number>}` are replaced with the respective matches in the file name, e.g. `{1}` is the
first match, `{2}` is the second. The default is: `db\.(.*) {1}` i.e. from a file with the
name `db.example.com`, the extracted origin will be `example.com`. **REGEXP** must not be longer
than 10000 characters.
than 10000 characters. **REGEXP** is unanchored; use `^` and `$` to require matching the full
file name, for example `^(.*)\.zone$` to avoid matching backup files like `example.org.zone.bak`.
* `reload` interval to perform reloads of zones if SOA version changes and zonefiles. It specifies how often CoreDNS should scan the directory to watch for file removal and addition. Default is one minute.
Value of `0` means to not scan for changes and reload. eg. `30s` checks zonefile every 30 seconds
and reloads zone when serial changes.