https://github.com/nonk123/dnscontrol-luaize
A Lua -> JS DSL transpiler & wrapper for dnscontrol.
https://github.com/nonk123/dnscontrol-luaize
dnscontrol lua transpiler
Last synced: 2 months ago
JSON representation
A Lua -> JS DSL transpiler & wrapper for dnscontrol.
- Host: GitHub
- URL: https://github.com/nonk123/dnscontrol-luaize
- Owner: nonk123
- License: unlicense
- Created: 2025-05-28T11:36:10.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-28T13:04:28.000Z (about 1 year ago)
- Last Synced: 2025-05-28T13:18:42.735Z (about 1 year ago)
- Topics: dnscontrol, lua, transpiler
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dnscontrol-luaize
A [dnscontrol](https://dnscontrol.org/) wrapper that generates the `dnsconfig.js` file given a Lua source.
The Lua part mirrors the [original JS DSL](https://docs.dnscontrol.org/language-reference/js) APIs, only offering a slightly more bearable Lua syntax.
## Usage
Just run `dnscontrol` commands as usual, replacing the binary name with `dnscontrol-luaize`, using `dnsconfig.lua` as your entrypoint. All this does is re-export your `dnsconfig.lua` to `dnsconfig.js` and pass all arguments back to `dnscontrol`. For example:
```sh
dnscontrol-luaize preview
dnscontrol-luaize push
```