<?
$whois_server = array(
'com' => 'whois.internic.net',
'net' => 'whois.internic.net',
'org' => 'whois.publicinterestregistry.net',
'co.kr' => 'whois.krnic.net'
);
$whois_avail = array(
'whois.internic.net' => 'No match for ',
'whois.publicinterestregistry.net' => 'NOT FOUND',
'whois.krnic.net' => 'is not registered to KRNIC'
);
// 도메인 조회 함수
function check_domain( $domain, $suffix ) {
global $whois_server,$whois_avail;
$server = $whois_server[$suffix];
$avail = $whois_avail[$server];
// 잘못된 도메인(com,net,org,co.kr이 아닌)
if (!$server) return false;
$sock = fsockopen($server,43,$errno,$errstr,30);
if (!$sock) {
echo "$errstr [$errno]";
return false;
}
fwrite($sock,"$domain.$suffix\r\n");
while (!feof($sock)) {
$ret .= fgets($sock);
}
echo $ret;
fclose($sock);
if (strstr($ret,$avail)) return true;
return false;
}
// 조회 도메인이 있다면
if ($domain) {
echo "<table cellspacing=0 border=1>\n";
foreach($whois_server as $suffix => $server) {
$ret = check_domain($domain,$suffix);
if ($ret)
$OX = 'O';
else
$OX = 'X';
echo " <tr>\n";
echo " <td align=right>$domain.$suffix ($OX)</td>\n";
echo " <td> 등록 ";
if (!$ret) echo "불";
echo "가능</td>\n";
echo " </tr>\n";
}
echo "</table>\n";
}
?>
<br><br><h3>Domain Search</h3>
<hr size=-1>
<form method=post>
Search Domain : <input type=text name=domain value="<?=$domain?>"><input type=submit value="조회">
</form>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 366 | ||
| 7829 |
|
9년 전 | 545 | |
| 7828 | 9년 전 | 478 | ||
| 7827 | 9년 전 | 363 | ||
| 7826 | 9년 전 | 373 | ||
| 7825 | 9년 전 | 423 | ||
| 7824 | 9년 전 | 412 | ||
| 7823 | 9년 전 | 312 | ||
| 7822 | 9년 전 | 313 | ||
| 7821 | 9년 전 | 261 | ||
| 7820 | 9년 전 | 312 | ||
| 7819 |
|
9년 전 | 711 | |
| 7818 | 9년 전 | 333 | ||
| 7817 | 9년 전 | 437 | ||
| 7816 | 9년 전 | 351 | ||
| 7815 | 10년 전 | 552 | ||
| 7814 | 10년 전 | 371 | ||
| 7813 | 10년 전 | 309 | ||
| 7812 | 10년 전 | 337 | ||
| 7811 | 10년 전 | 357 | ||
| 7810 | 10년 전 | 482 | ||
| 7809 | 10년 전 | 429 | ||
| 7808 | 10년 전 | 278 | ||
| 7807 | 10년 전 | 342 | ||
| 7806 |
프로그래머7
|
10년 전 | 1300 | |
| 7805 | 10년 전 | 1203 | ||
| 7804 |
zahir1312
|
10년 전 | 735 | |
| 7803 |
|
10년 전 | 1336 | |
| 7802 | 10년 전 | 392 | ||
| 7801 | 10년 전 | 820 | ||
| 7800 | 10년 전 | 1034 | ||
| 7799 | 10년 전 | 495 | ||
| 7798 | 10년 전 | 441 | ||
| 7797 | 10년 전 | 441 | ||
| 7796 | 10년 전 | 295 | ||
| 7795 | 10년 전 | 444 | ||
| 7794 | 10년 전 | 469 | ||
| 7793 | 10년 전 | 988 | ||
| 7792 | 10년 전 | 396 | ||
| 7791 | 10년 전 | 476 | ||
| 7790 | 10년 전 | 447 | ||
| 7789 |
fbastore
|
10년 전 | 1384 | |
| 7788 | 10년 전 | 480 | ||
| 7787 | 10년 전 | 340 | ||
| 7786 | 10년 전 | 492 | ||
| 7785 | 10년 전 | 510 | ||
| 7784 | 10년 전 | 578 | ||
| 7783 | 10년 전 | 380 | ||
| 7782 | 10년 전 | 436 | ||
| 7781 | 10년 전 | 839 | ||
| 7780 | 10년 전 | 771 | ||
| 7779 | 10년 전 | 745 | ||
| 7778 | 10년 전 | 310 | ||
| 7777 | 10년 전 | 388 | ||
| 7776 | 10년 전 | 392 | ||
| 7775 | 10년 전 | 331 | ||
| 7774 | 10년 전 | 595 | ||
| 7773 | 10년 전 | 317 | ||
| 7772 | 10년 전 | 660 | ||
| 7771 | 10년 전 | 321 | ||
| 7770 | 10년 전 | 606 | ||
| 7769 | 10년 전 | 315 | ||
| 7768 | 10년 전 | 540 | ||
| 7767 | 10년 전 | 1114 | ||
| 7766 | 10년 전 | 438 | ||
| 7765 | 10년 전 | 460 | ||
| 7764 |
잘살아보자
|
10년 전 | 318 | |
| 7763 |
|
10년 전 | 1393 | |
| 7762 |
Tosea
|
10년 전 | 1012 | |
| 7761 | 10년 전 | 610 | ||
| 7760 |
잘살아보자
|
10년 전 | 580 | |
| 7759 |
잘살아보자
|
10년 전 | 396 | |
| 7758 |
잘살아보자
|
10년 전 | 515 | |
| 7757 | 10년 전 | 1169 | ||
| 7756 |
ITBANK
|
10년 전 | 1212 | |
| 7755 | 10년 전 | 1890 | ||
| 7754 | 10년 전 | 978 | ||
| 7753 | 10년 전 | 835 | ||
| 7752 | 10년 전 | 1336 | ||
| 7751 |
잘살아보자
|
10년 전 | 465 | |
| 7750 |
잘살아보자
|
10년 전 | 428 | |
| 7749 |
잘살아보자
|
10년 전 | 426 | |
| 7748 |
잘살아보자
|
10년 전 | 417 | |
| 7747 |
잘살아보자
|
10년 전 | 502 | |
| 7746 |
잘살아보자
|
10년 전 | 617 | |
| 7745 |
잘살아보자
|
10년 전 | 862 | |
| 7744 |
잘살아보자
|
10년 전 | 383 | |
| 7743 | 10년 전 | 909 | ||
| 7742 |
starbros
|
10년 전 | 781 | |
| 7741 |
잘살아보자
|
10년 전 | 592 | |
| 7740 |
잘살아보자
|
10년 전 | 468 | |
| 7739 |
잘살아보자
|
10년 전 | 428 | |
| 7738 |
잘살아보자
|
10년 전 | 482 | |
| 7737 |
잘살아보자
|
10년 전 | 436 | |
| 7736 |
잘살아보자
|
10년 전 | 462 | |
| 7735 |
잘살아보자
|
10년 전 | 796 | |
| 7734 |
잘살아보자
|
10년 전 | 384 | |
| 7733 |
잘살아보자
|
10년 전 | 484 | |
| 7732 |
잘살아보자
|
10년 전 | 638 | |
| 7731 |
잘살아보자
|
10년 전 | 563 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기