Skip to content

Commit

Permalink
Merge pull request #2515 from nupfel/plugins/iwhois
Browse files Browse the repository at this point in the history
provides iwhois command to use CNAMES under whois.geek.nz to find most accurate whois server
  • Loading branch information
robbyrussell committed Feb 12, 2014
2 parents 2ed9903 + 0cb2ecf commit 4ce7f0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/iwhois/iwhois.plugin.zsh
Original file line number Diff line number Diff line change
@@ -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 4ce7f0a

Please sign in to comment.