Skip to content

Instantly share code, notes, and snippets.

View vitalie's full-sized avatar

Vitalie Cherpec vitalie

View GitHub Profile
@vitalie
vitalie / example.com.bind
Created April 18, 2012 12:31
Luadns versus Bind
$ORIGIN .
$TTL 3600 ; 1 hour
example.com IN SOA ns1.luadns.net. hostmaster.luadns.net. (
1334752032 ; serial
1200 ; refresh (20 minutes)
120 ; retry (2 minutes)
604800 ; expire (1 week)
3600 ; minimum (1 hour)
)
NS ns1.luadns.net.
@vitalie
vitalie / example.com.lua
Created August 27, 2012 11:49
LuaDNS - Google Apps Configuration Example (Lua)
-- File: example.com.lua
-- Variable _a is replaced with zone name
-- _a = example.com
--- ...
-- Call template with domain name as parameter
google_apps(_a)
-- ...
@vitalie
vitalie / example.com.bind
Created August 27, 2012 12:46
LuaDNS - Google Apps Configuration Example (Bind)
; Configure domain's mail exchangers (MX)
; aspmx.l.google.com should have the highest priority
@ MX 1 aspmx.l.google.com.
@ MX 5 alt1.aspmx.l.google.com.
@ MX 5 alt2.aspmx.l.google.com.
@ MX 10 aspmx2.googlemail.com.
@ MX 10 aspmx3.googlemail.com.
; Configure mail.example.com
; it will allow us to access web email using
@vitalie
vitalie / example.com.lua
Created August 27, 2012 13:04
LuaDNS - Heroku Configuration Example (Lua)
-- File: example.com.lua
-- Variable _a is replaced with zone name
-- _a = example.com
-- replace heroku-app-name with application name
heroku_app(_a, "heroku-app-name.herokuapp.com")
@vitalie
vitalie / example.com.bind
Created August 27, 2012 13:07
LuaDNS - Heroku Configuration Example (Bind)
; Replace heroku-app-name with application name
www CNAME heroku-app-name.herokuapp.com.
; Usage of A records for naked domains is highly discouraged by Heroku
; here we are using A records only for redirection
; example.com will be redirected to www.example.com
; using "rack-canonical-host" or other method
@ A 75.101.163.44
@ A 75.101.145.87
@ A 174.129.212.2
@vitalie
vitalie / example.com.lua
Created August 27, 2012 13:32
LuaDNS - AppFog/PhpFog Configuration Example (Lua)
-- File: example.com.lua
-- Variable _a is replaced with zone name
-- _a = example.com
-- Call appfog template with domain name as parameter
appfog(_a)
@vitalie
vitalie / example.com.bind
Created August 27, 2012 13:48
LuaDNS - AppFog/PhpFog Configuration Example (Bind)
; Create CNAME for www.example.com
www CNAME cname01.phpfog.com.
; Add A records for root/naked domain (example.com)
@ A 50.19.115.173
@ A 184.72.222.30
@ A 107.22.161.126
@vitalie
vitalie / example.com.lua
Created August 27, 2012 14:10
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)
@vitalie
vitalie / example.com.bind
Created August 27, 2012 14:14
LuaDNS - dotCloud Configuration Example (Bind)
; Create CNAME for www.example.com
www CNAME gateway.dotcloud.com.
@vitalie
vitalie / example.com.lua
Last active October 9, 2015 10:28
LuaDNS - GitHub Pages Configuration Example (Lua)
-- 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")