출처 :
http://www.cyberciti.biz/tips/domain-check-script.html스크립트 원문 :
http://www.cyberciti.biz/files/scripts/domain-check-2.txt다운로드
$ wget http://www.cyberciti.biz/files/scripts/domain-check-2.txt
$ mv domain-check-2.txt domain-check
$ chmod +x domain-check
$ ./domain-check -d chonnom.com
사용방법
Usage: domain-check.sh [ -e email ] [ -x expir_days ] [ -q ] [ -a ] [ -h ]
{[ -d domain_namee ]} || { -f domainfile}
-a : Send a warning message through email
-d domain : Domain to analyze (interactive mode)
-e email address : Email address to send expiration notices
-f domain file : File with a list of domains
-h : Print this screen
-s whois server : Whois sever to query for information
-q : Don't print anything on the console
-x days : Domain expiration interval (eg. if domain_date < days)
[root@mojily ~]# ./domain-check. -d chonnom.com
Domain Registrar Status Expires Days Left
----------------------------------- ----------------- -------- ----------- ---------
chonnom.com ASADAL, INC. Valid 18-aug-2010 117
도메인리스트를 파일로 만들어서 불러오기
[root@mojily ~]#
cat domain.txtchonnom.com
mojily.net
kyunghyun.net
[root@mojily ~]#
./domain-check -f domain.txt
※ 종료시점에 맞춰서 메일보내는 기능도 있다.