86fc391f8cd18ba2227dd00b48b1746de89341a8

Author
David McKissick <dwm0816@outlook.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

iwhois: add README (#7176)

Diff

 1diff --git a/plugins/iwhois/README.md b/plugins/iwhois/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..1626b85248a0348acf52a2ca70a366610eeb9090
 4--- /dev/null
 5+++ b/plugins/iwhois/README.md
 6@@ -0,0 +1,24 @@
 7+# iwhois
 8+
 9+Provides a whois command with a more accurate and up-to-date list of whois servers
10+using CNAMES, via [whois.geek.nz](https://github.com/iwantmyname/whois.geek.nz).
11+
12+To use it, add iwhois to the plugins array of your zshrc file:
13+```
14+plugins=(... iwhois)
15+```
16+
17+### Usage
18+
19+The plugin defines the function `iwhois` that takes a domain name as an argument:
20+
21+```
22+$ iwhois github.com
23+   Domain Name: GITHUB.COM
24+   Registry Domain ID: 1264983250_DOMAIN_COM-VRSN
25+   Registrar WHOIS Server: whois.markmonitor.com
26+   Registrar URL: http://www.markmonitor.com
27+   Updated Date: 2017-06-26T16:02:39Z
28+   Creation Date: 2007-10-09T18:20:50Z
29+   ...
30+```
31diff --git a/plugins/iwhois/iwhois.plugin.zsh b/plugins/iwhois/iwhois.plugin.zsh
32index 38790bf28ad0ce2c5e33d5b1ee10be158ffeb73a..22a75eec1eee75d732921832c7baa36e8c30fe93 100644
33--- a/plugins/iwhois/iwhois.plugin.zsh
34+++ b/plugins/iwhois/iwhois.plugin.zsh
35@@ -1,6 +1,3 @@
36-# provide a whois command with a more accurate and up to date list of whois
37-# servers using CNAMES via whois.geek.nz
38-
39 function iwhois() {
40     resolver="whois.geek.nz"
41     tld=`echo ${@: -1} | awk -F "." '{print $NF}'`