Skip to content
/ dns Public
forked from luadns/dns

Template Repository for getting started with LuaDNS.

Notifications You must be signed in to change notification settings

pulumiup/dns

 
 

Repository files navigation

Example Git repository

LuaDNS service allows you to manage DNS settings with git.

This is an example git repository, read more here: http://www.luadns.com/help.html#git-integration

Add a new zone

To add a new zone, create a new file with zone name, appending .lua suffix when using Lua format or .bind when using Bind format. Push your changes with git, the zone and it's records will be added to LuaDNS name servers:

touch example.com.lua
git add git example.com.lua
git commit -m "Add example.com zone" example.com.lua
git push

Remove a zone

To remove a zone, remove the file and push the changes to remove zone from LuaDNS name servers:

git rm example.com.lua
git commit -m "Remove example.com zone" example.com.lua
git push

Templates

The .lua files from templates directory of your repository are executed before other .lua files. You can put your global functions and variables there.

Examples:

Pre-commit Hook

When changes are pushed to the git repository users are receiving an email with the build status. The workflow can be speed up by using a pre-commit hook which validates your DNS files by running syntax checks.

About

Template Repository for getting started with LuaDNS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 73.9%
  • Shell 26.1%