mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-05 21:31:04 +01:00
9 lines
259 B
Bash
9 lines
259 B
Bash
|
# 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} "$@" ;
|
||
|
}
|