mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Merge pull request #2515 from nupfel/plugins/iwhois
provides iwhois command to use CNAMES under whois.geek.nz to find most accurate whois server
This commit is contained in:
commit
4ce7f0a37f
1 changed files with 8 additions and 0 deletions
8
plugins/iwhois/iwhois.plugin.zsh
Normal file
8
plugins/iwhois/iwhois.plugin.zsh
Normal 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} "$@" ;
|
||||
}
|
Loading…
Reference in a new issue