X-Git-Url: https://git.distorted.org.uk/~mdw/zone/blobdiff_plain/baad8564bdf6f31b2575b730aa82bace5752f074..9d1d9739d9562bfdc59661c2256a0246ab113eae:/zone.lisp diff --git a/zone.lisp b/zone.lisp index 38c79f0..909f755 100644 --- a/zone.lisp +++ b/zone.lisp @@ -786,6 +786,7 @@ "Stream to write zone data on.") (defmethod zone-write :around (format zone stream) + (declare (ignore format)) (let ((*writing-zone* zone) (*zone-output-stream* stream)) (call-next-method))) @@ -894,6 +895,8 @@ $TTL ~2@*~D~2%" (: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 --------------------------------------------------