Denis Machard

My technical gists

Infrastructure background, developer mindset. I build things for pleasure.
    @github @mastodon @rss

    dnsdist-yamlify: Convert dnsdist Lua Configurations to YAML

    I built dnsdist-yamlify to make it easier to migrate existing dnsdist Lua configurations to YAML.

    The source code is available on GitHub, and you can try the online converter, which runs entirely in your browser.

    How it works

    The tool parses Lua into an abstract syntax tree and uses metadata extracted from PowerDNS’s official YAML definitions to convert supported configuration. It also preserves comments from the original file.

    Some configurations rely on custom Lua helpers or dynamic constructs that cannot be represented directly in YAML. For those cases, dnsdist-yamlify can generate a hybrid configuration: a dnsdist.yml file alongside a companion dnsdist.lua, which dnsdist 2.x loads automatically.

    Before converting, the check subcommand reports which parts of a configuration are compatible with YAML.

    propulsed by hugo and hugo-theme-gists