chiark / gitweb /
zone.lisp: Support multi-line TXT records.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 Apr 2014 16:20:25 +0000 (17:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 Apr 2014 16:27:52 +0000 (17:27 +0100)
zone.lisp

index 8124b28435aeac418d301958691228c070349541..909f7558cee42c7c6f0907435e8dd7abb157bdc6 100644 (file)
--- a/zone.lisp
+++ b/zone.lisp
@@ -895,6 +895,8 @@ (defgeneric bind-record-format-args (type data)
   (:method ((type (eql :srv)) data)
     (destructuring-bind (prio weight port host) data
       (list "~2D ~5D ~5D ~A" prio weight port (bind-hostname host))))
-  (:method ((type (eql :txt)) data) (list "~S" (stringify data))))
+  (:method ((type (eql :txt)) data)
+    (cons "~#[\"\"~;~S~:;(~@{~%~8T~S~} )~]"
+         (mapcar #'stringify (listify data)))))
 
 ;;;----- That's all, folks --------------------------------------------------