X-Git-Url: https://git.distorted.org.uk/~mdw/zone/blobdiff_plain/2f1d381d7cf464f2ce50d6754a538d9e0fc89876..7d593efdac74772541cd65e959a890a70ffd8e97:/net.lisp?ds=sidebyside diff --git a/net.lisp b/net.lisp index 35e4340..d957f53 100644 --- a/net.lisp +++ b/net.lisp @@ -256,19 +256,20 @@ ;;;-------------------------------------------------------------------------- ;;; Name resolution. -#+cmu (defun resolve-hostname (name) "Resolve a hostname to an IP address using the DNS, or return nil." - (let ((he (ext:lookup-host-entry name))) - (and he - (ext:host-entry-addr he)))) + #+cmu (let ((he (ext:lookup-host-entry name))) + (and he + (ext:host-entry-addr he))) + #-cmu nil +) -#+cmu (defun canonify-hostname (name) "Resolve a hostname to canonical form using the DNS, or return nil." - (let ((he (ext:lookup-host-entry name))) - (and he - (ext:host-entry-name he)))) + #+cmu (let ((he (ext:lookup-host-entry name))) + (and he + (ext:host-entry-name he))) + #-cmu nil) ;;;-------------------------------------------------------------------------- ;;; Host names and specifiers.