Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

provides iwhois command to use CNAMES under whois.geek.nz to find mos…

…t accurate whois server
  • Loading branch information...
commit 0cb2ecff8002e478f5e7e64cb529eb2af71b0299 1 parent ec37c05
Tobias Kirschstein authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 plugins/iwhois/iwhois.plugin.zsh
View
8 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} "$@" ;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.