The arbitrary plugin provides a simple way to return predefined DNS resource records for matching queries. Rules may be supplied inline or loaded from files and support A, AAAA and CNAME records. This plugin is useful for tests, local overrides, and tiny authoritative responses.
ResourceRecords and returns them as the response.rules (sequence of strings) or file lines in files referenced by files.qname TYPE RDATA where TYPE is A, AAAA, or CNAME.Examples:
example.com A 192.0.2.1example.com AAAA 2001:db8::1example.com CNAME target.example.comLines beginning with # or ; and empty lines are ignored when loading from files.
rules (sequence, optional): inline rule strings.files (sequence, optional): file paths containing rule lines.Example (inline rules):
plugins:
- tag: arb
type: arbitrary
config:
rules:
- "example.com A 192.0.2.1"
- "example.com CNAME cname.example.net"
Example (file-backed):
plugins:
- tag: arb-file
type: arbitrary
config:
files:
- examples/arbitrary/rules.txt