about summary refs log tree commit diff
path: root/tools/emacs-pkgs/defzone/example.el
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-22T03·07+0000
committerVincent Ambo <tazjin@google.com>2020-04-20T21·39+0100
commit5cc37a15a5a5d1b4950c79b2298806dbadde4643 (patch)
tree8e0faabe0ae3e71e0590988dbf087416276b60a9 /tools/emacs-pkgs/defzone/example.el
parent8c86b9b5f60af4d2bd16352ace7b19fdde04ffda (diff)
feat(defzone): Add plist argument format for SOA records r/642
These records have so many fields that it's difficult to track what's
what in a long list. For convenience they're now specified in plist
format (see the example).

There isn't really a point to this because the SOA record is the one I
care the *least* about practically as Cloud DNS sets it for me, but
whatever.
Diffstat (limited to 'tools/emacs-pkgs/defzone/example.el')
-rw-r--r--tools/emacs-pkgs/defzone/example.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/emacs-pkgs/defzone/example.el b/tools/emacs-pkgs/defzone/example.el
index 6405eaf2f72c..e9c86d25eec8 100644
--- a/tools/emacs-pkgs/defzone/example.el
+++ b/tools/emacs-pkgs/defzone/example.el
@@ -1,8 +1,14 @@
 ;;; example.el - usage example for defzone macro
 
 (defzone "tazj.in."
-  (SOA 21600 "ns-cloud-a1.googledomains.com." "cloud-dns-hostmaster.google.com."
-       123 21600 3600 1209600 300)
+  (SOA 21600
+       :mname "ns-cloud-a1.googledomains.com."
+       :rname "cloud-dns-hostmaster.google.com."
+       :serial 123
+       :refresh 21600
+       :retry 3600
+       :expire 1209600
+       :minimum 300)
 
   (NS 21600
       "ns-cloud-a1.googledomains.com."