This section details resolving hostnames to addresses, as well as conditions/events that occur while using the DNS system.
(defun dns-lookup (host resolve-cb event-cb &key (family +af-unspec+))) => nil
Asynchronously lookup an IP address given a hostname. If the hostname is an IP address already, the mechanics are the same although the callback is called synchronously.
:family keyword can be one of
;; example (dns-lookup "www.google.com" (lambda (host family) (format t "Address: ~a~%" host)) (lambda (err) (format t "err: ~a~%" err)))
(lambda (ip-address-string ip-address-family) ...)
ip-address-family will be either
These are the conditions the DNS system can signal in event callbacks.
This explains a DNS error (for instance if a DNS lookup fails).