Skip to content

Instantly share code, notes, and snippets.

@vitalie
Created August 27, 2012 14:10
Show Gist options
  • Save vitalie/3488768 to your computer and use it in GitHub Desktop.
Save vitalie/3488768 to your computer and use it in GitHub Desktop.
LuaDNS - dotCloud Configuration Example (Lua)
-- File: example.com.lua
-- Variable _a is replaced with zone name
-- _a = example.com
-- Call dotcloud template with domain name as parameter
dotcloud(_a)
function dotcloud(domain)
-- Create CNAME for www.mydomain.com
cname(concat("www", domain), "gateway.dotcloud.com")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment