lazydns

Arbitrary Plugin

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.

What it does

Supported rule formats

Examples:

Lines beginning with # or ; and empty lines are ignored when loading from files.

Configuration

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

Troubleshooting