X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/zone/blobdiff_plain/d41530734b268fb5396c5bf9b39f141408922026..7d593efdac74772541cd65e959a890a70ffd8e97:/zone.lisp diff --git a/zone.lisp b/zone.lisp index 35e6f80..64488c2 100644 --- a/zone.lisp +++ b/zone.lisp @@ -145,7 +145,8 @@ (defstruct (zone (:predicate zonep)) ;;; Zone defaults. It is intended that scripts override these. (defvar *default-zone-source* - (let ((hn (unix:unix-gethostname))) + (let ((hn #+cmu (unix:unix-gethostname) + #+clisp (unix:get-host-name))) (and hn (concatenate 'string (canonify-hostname hn) "."))) "The default zone source: the current host's name.") @@ -754,8 +755,8 @@ (defun zone-write (zone &optional (stream *standard-output*)) ;;; Zone file `~(~A~)' ;;; (generated ~A) -$ORIGIN ~@0*~(~A.~) -$TTL ~@2*~D~2%" +$ORIGIN ~0@*~(~A.~) +$TTL ~2@*~D~2%" (zone-name zone) (iso-date :now :datep t :timep t) (zone-default-ttl zone))