Skip to content

Commit

Permalink
provides iwhois command to use CNAMES under whois.geek.nz to find mos…
Browse files Browse the repository at this point in the history
…t accurate whois server
  • Loading branch information
nupfel committed Feb 11, 2014
1 parent ec37c05 commit 0cb2ecf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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} "$@" ;
}

0 comments on commit 0cb2ecf

Please sign in to comment.