Function: whois
whois is an autoloaded, interactive and byte-compiled function defined
in net-utils.el.gz.
Signature
(whois ARG SEARCH-STRING)
Documentation
Send SEARCH-STRING to server defined by the whois-server-name variable.
If whois-guess-server is non-nil, then try to deduce the correct server
from SEARCH-STRING. With argument, prompt for whois server.
The port is deduced from network-connection-service-alist.
Probably introduced at or before Emacs version 20.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/net-utils.el.gz
;; Whois protocol
;;;###autoload
(defun whois (arg search-string)
"Send SEARCH-STRING to server defined by the `whois-server-name' variable.
If `whois-guess-server' is non-nil, then try to deduce the correct server
from SEARCH-STRING. With argument, prompt for whois server.
The port is deduced from `network-connection-service-alist'."
(interactive "P\nsWhois: ")
(let* ((whois-apropos-host (if whois-guess-server
(rassoc (whois-get-tld search-string)
whois-server-tld)
nil))
(server-name (if whois-apropos-host
(car whois-apropos-host)
whois-server-name))
(host
(if arg
(completing-read "Whois server name: "
whois-server-list nil nil "whois.")
server-name)))
(run-network-program
"Whois"
host
(cdr (assoc 'whois network-connection-service-alist))
search-string)))