Merge pull request #6 from tomas-l/master
Added support for .cz and .sk TLDs
This commit is contained in:
commit
8c193b6681
@ -90,7 +90,7 @@ This plugin will use whois service to get the expiration date for the domain nam
|
|||||||
Example:
|
Example:
|
||||||
$PROGRAM -d domain.tld -w 30 -c 10
|
$PROGRAM -d domain.tld -w 30 -c 10
|
||||||
|
|
||||||
Currently supports .com, .ca, .tv, .ee, .ru, .nu .se, .net, .org
|
Currently supports .com, .ca, .tv, .ee, .ru, .nu .se, .net, .org, .cz, .sk
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -155,6 +155,12 @@ case "$domain" in
|
|||||||
*.nu)
|
*.nu)
|
||||||
expiration=$(echo "$out" | grep expires | awk '{print $2}')
|
expiration=$(echo "$out" | grep expires | awk '{print $2}')
|
||||||
;;
|
;;
|
||||||
|
*.cz)
|
||||||
|
expiration=$(echo "$out" | awk '/expire:/{split($2, a, "."); printf("%s-%s-%s\n", a[3], a[2], a[1])}')
|
||||||
|
;;
|
||||||
|
*.sk)
|
||||||
|
expiration=$(echo "$out" | grep Valid-date | awk '{print $2}')
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
expiration=$(echo "$out" | awk -F: '/Expiration Date:/{print substr($0, length($1) + 2)}')
|
expiration=$(echo "$out" | awk -F: '/Expiration Date:/{print substr($0, length($1) + 2)}')
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user