Merge pull request #2515 from nupfel/plugins/iwhois
provides iwhois command to use CNAMES under whois.geek.nz to find most accurate whois server
Diff
1diff --git a/plugins/iwhois/iwhois.plugin.zsh b/plugins/iwhois/iwhois.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..38790bf28ad0ce2c5e33d5b1ee10be158ffeb73a
4--- /dev/null
5+++ b/plugins/iwhois/iwhois.plugin.zsh
6@@ -0,0 +1,8 @@
7+# provide a whois command with a more accurate and up to date list of whois
8+# servers using CNAMES via whois.geek.nz
9+
10+function iwhois() {
11+ resolver="whois.geek.nz"
12+ tld=`echo ${@: -1} | awk -F "." '{print $NF}'`
13+ whois -h ${tld}.${resolver} "$@" ;
14+}