|
Á¦ ¸ñ : ¿©·¯ µµ¸ÞÀÎÀ» Çѹø¿¡ whoisÇÏ´Â ½ºÅ©¸³Æ®
ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel)
ÀÛ¼ºÀÏ : 2009.3.3(È)
whois Ŭ¶óÀ̾ðÆ®¸¦ ÀÌ¿ëÇÏ¿© co.kr, or.kr, re.kr, pe.kr, go.kr, kr, com, org, net µîÀÇ µµ¸ÞÀÎÀ» ÀÏ°ýÀûÀ¸·Î È®ÀÎÇÏ´Â ½ºÅ©¸³Æ®ÀÌ´Ù. ¿¹¸¦ µé¾î 'google' À̶ó°í Å°¿öµå¸¦ ÀÔ·ÂÇÒ ¶§ ´ÙÀ½°ú °°Àº °á°ú¸¦ º¼ ¼ö ÀÖ´Ù. whoisÀÇ »ó¼¼ÇÑ °á°ú´Â result_Å°¿öµå_³¯Â¥.txt ÆÄÀÏ¿¡ ÀúÀåµÈ´Ù.
|
$ whois_list.sh google
google.co.kr µî·Ï => µî·ÏÀÏ: 1999. 07. 28.
google.or.kr µî·Ï => µî·ÏÀÏ: 2009. 01. 07.
google.re.kr µî·Ï => µî·ÏÀÏ: 2006. 01. 19.
google.pe.kr µî·Ï => µî·ÏÀÏ: 2002. 07. 08.
google.go.kr ¾øÀ½
google.kr µî·Ï => µî·ÏÀÏ: 2007. 03. 02.
google.com µî·Ï => Creation Date: 15-sep-1997
google.org µî·Ï => Created On:21-Oct-1998 04:00:00 UTC
google.net µî·Ï => Creation Date: 15-mar-1999
| |
* whois¿ë ½ºÅ©¸³Æ® whois_list.sh ³»·Á¹Þ±â
[ whois¿ë ½ºÅ©¸³Æ® ]
|
#!/bin/sh
#
# ¿©·¯ µµ¸ÞÀÎ whois
#
# 2009.2.26(¸ñ), 3.3(È) ¼öÁ¤
# by ÁÁÀºÁøÈ£( http://coffeenix.net/ )
SLD="co.kr or.kr re.kr pe.kr go.kr kr com org net"
#
if [ "$1" = "" ]; then
exit
fi
REQUEST="$1"
DATE=`date +'%Y%m%d_%H%M'`
echo -n "" > result_${REQUEST}_$DATE.txt
for d in $SLD
do
DOMAIN="$REQUEST.$d"
RESULT=`whois $DOMAIN`
echo "$RESULT" >> result_${REQUEST}_$DATE.txt
#
CREATE=`echo "$RESULT"|egrep '(µî·ÏÀÏ|Creation Date|Created On)'|sed 's/ //g'`
MATCH=` echo -n "$CREATE"|wc -c`
if [ $MATCH -ge 1 ]; then
printf "%-20s µî·Ï => %s\n" $DOMAIN "$CREATE"
else
printf "%-20s ¾øÀ½\n" $DOMAIN
fi
done
| |
|