Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
comotion committed Sep 19, 2013
2 parents f4ed7e3 + 919f27c commit d5872cc
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ for this ridiculous format, which usually is about as large as the rest of the
server. Only exception is BIND itself, which somehow manages to be ten times
larger than its parser.

Furthermore, we really don't like putting our DNS records in SQL.
Furthermore, we really don't like putting our DNS records in SQL,
despite the fact that Maintain, NicTool and Sauron may be perfectly decent programs.

So, we base ourselves on git and TinyDNS, and we write a script to validate
domain records before turning them /live/ on our server.
Expand Down Expand Up @@ -110,3 +111,7 @@ conip

conip is a script to update DNS records with ssh clients. it is still work in progress

legend
------

just an example zone file for use with TinyDNS
38 changes: 38 additions & 0 deletions legend
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# legend:
# %lo:ip - location lo has prefix ip
# .fqdn:ip:x:ttl:timestamp:lo SOA, NS, A
# &fqdn:ip:x:ttl:timestapm:lo NS, A
# =fqdn:ip:ttl:timestamp:lo A, PTR
# +fqdn:ip:ttl:timestapm:lo A
# @fqdn:ip:x:dist:ttl:timestapm:lo MX, A
# -fqdn:ip:x:dist:ttl:timestamp:lo DISABLED
# 'fqdn:s:ttl:timestamp:lo TXT 's', \nnn octal supported
# ^fqdn:p:ttl:timestapm:lo PTR
# Cfqdn:p:ttl:timestapm:lo CNAME
# Zfqdn:mname:rname:ser:ref:ret:exp:min:ttl:timestamp:lo SOA
# :fqdn:n:rdata:ttl:timestamp:lo generic record n
# 3fqdn:deadbeefcafe0babe1ee7560daf8ecff:86400 AAAA intr #nb! ip6 wildcards considered harmful
# 6fqdn:deadbeefcafe0babe1eee3712341ecff:86400 AAAA intr PTR arpa

# example SOA with 1800s ttl
.example.com:203.0.113.1:ns0.example.com:1800
# example A + PTR record
=cafebabe.example.com:203.0.113.23:1800
# example MX record (with automagic A record)
@example.com:203.0.113.44:mail.example.com:1800
# wildcard MX record without A record
@*.example.com::mail.example.com:1800
# reverse PTR record (already setup by = line)
^44.113.0.203.in-addr.arpa:mail.example.com
# CNAME
Cmx.example.com:mail.example.com:1800
# round-robin A records is just same record with multiple ip's
+www.example.com:203.0.113.42:1800
+www.example.com:203.0.113.41:1800
# TXT record (for SPF and domainkeys)
'lulz.example.com:I did it for the lulz!:1800
# SSHFP (employing generic records, generated by
:login.example.com:44:\123\123\123\257\342\252\132\313\212\321\025\101\104\123\102\163\262\143\166\137\043\373:
#IP6
6www.example.com:deadbeefeebdadeadbaffefffec8ffec:86400

0 comments on commit d5872cc

Please sign in to comment.