From 0cb2ecff8002e478f5e7e64cb529eb2af71b0299 Mon Sep 17 00:00:00 2001 From: Tobias Kirschstein Date: Tue, 11 Feb 2014 19:56:13 +1300 Subject: [PATCH] provides iwhois command to use CNAMES under whois.geek.nz to find most accurate whois server --- plugins/iwhois/iwhois.plugin.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/iwhois/iwhois.plugin.zsh diff --git a/plugins/iwhois/iwhois.plugin.zsh b/plugins/iwhois/iwhois.plugin.zsh new file mode 100644 index 00000000..38790bf2 --- /dev/null +++ b/plugins/iwhois/iwhois.plugin.zsh @@ -0,0 +1,8 @@ +# provide a whois command with a more accurate and up to date list of whois +# servers using CNAMES via whois.geek.nz + +function iwhois() { + resolver="whois.geek.nz" + tld=`echo ${@: -1} | awk -F "." '{print $NF}'` + whois -h ${tld}.${resolver} "$@" ; +}