dnsdist-yamlify: tool to convert dnsdist Lua configs to YAML

A tool to convert dnsdist Lua configs to YAML

How it works:

  • Uses a Lua AST parser, backed by metadata extracted directly from PowerDNS's official YAML definitions.
  • Supports hybrid output: if a config contains custom Lua helpers or dynamic constructs, it generates both dnsdist.yml and a companion dnsdist.lua, auto-loaded by dnsdist 2.x.
  • Preserves comments, and includes a check subcommand to report YAML compatibility before converting.

This is an early release, and feedback and bug reports on GitHub are welcome. Be really careful, it doesn't produce valid configuration in my scenario!