Last active
October 9, 2015 10:28
-
-
Save vitalie/3488913 to your computer and use it in GitHub Desktop.
LuaDNS - GitHub Pages Configuration Example (Lua)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- File: example.com.lua | |
-- Variable _a is replaced with zone name | |
-- _a = example.com | |
-- replace github-username with your username | |
github_pages(_a, "github-username") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function github_pages(domain, username) | |
-- Create CNAME for www.yourdomain.com pointing to user.github.com | |
cname(concat("www", domain), concat(username, "github.com")) | |
-- Create A records for root/naked domain (yourdomain.com) | |
a(domain, "204.232.175.78") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
github.com
cname should now begithub.io