1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

provides iwhois command to use CNAMES under whois.geek.nz to find most accurate whois server

This commit is contained in:
Tobias Kirschstein 2014-02-11 19:56:13 +13:00
parent ec37c05cb3
commit 0cb2ecff80

View file

@ -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} "$@" ;
}