From e95220d3a99ae1c4780ad495cd4bb8d0f1442eb2 Mon Sep 17 00:00:00 2001 From: cn Date: Sun, 26 Nov 2017 15:57:31 +0100 Subject: [PATCH] docs: add example zone file for testing --- CHANGELOG.md | 4 ++++ example.zone | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 example.zone diff --git a/CHANGELOG.md b/CHANGELOG.md index ded1fd1..98f92e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ NEW FEATURES: - Support toggling comments +IMPROVEMENTS: + +- Add example zone file using many possibilities offered by RFC 1035 syntax (even if this package does not highlight it correctly) + ## 1.0.0 (November 11, 2017) NEW FEATURES: diff --git a/example.zone b/example.zone new file mode 100644 index 0000000..7440ff1 --- /dev/null +++ b/example.zone @@ -0,0 +1,36 @@ +$TTL 86400 ; 24 hours, could have been written as 24h or 1d +$ORIGIN example.com. + +@ 7d IN SOA ns1.example.com. hostmaster.example.com. ( + 2017010101 ; serial + 3H ; refresh + 15 ; retry + 1W ; expire + 5m ; minimum + ) + +; name servers + 7D IN NS ns1.example.com. ; in the domain + 7D IN NS ns2.example.org. ; external to domain + +; services and hosts +ns1 IN A 192.168.0.1 ; name server IPv4 address +ns1 IN AAAA 2001:0db8::1 ; name server IPv6 address +www IN A 192.168.0.2 ; web server +ftp IN CNAME www.example.com. ; ftp alias (absolute) +xmpp IN CNAME www ; xmpp alias (relative) + +; mail + IN MX 10 mail.example.org. ; external mail provider +mail._domainkey IN TXT "v=DKIM1\; h=sha256\; k=rsa\; s=email\; p=loooooooooog" + +; CAA records for Let's Encrypt, one in RFC 3597 syntax + IN CAA 0 issue "letsencrypt.org" +; IN CAA 0 iodef "mailto:abuse@example.com" + IN TYPE257 \# 31 0005696F6465666D61696C746F3A6162757365406578616D706C652E636F6D + +; xmpp +_jabber._tcp IN SRV 5 0 5269 xmpp + +; special +xx.lcs.mit.edu. CH A mit.edu. 2420