From 9d1d9739d9562bfdc59661c2256a0246ab113eae Mon Sep 17 00:00:00 2001 Message-Id: <9d1d9739d9562bfdc59661c2256a0246ab113eae.1714920718.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 3 Apr 2014 17:20:25 +0100 Subject: [PATCH] zone.lisp: Support multi-line TXT records. Organization: Straylight/Edgeware From: Mark Wooding --- zone.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone.lisp b/zone.lisp index 8124b28..909f755 100644 --- 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 -------------------------------------------------- -- [mdw]