<?
$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년 전 | 436 | ||
| 7829 |
|
9년 전 | 623 | |
| 7828 | 10년 전 | 550 | ||
| 7827 | 10년 전 | 445 | ||
| 7826 | 10년 전 | 449 | ||
| 7825 | 10년 전 | 491 | ||
| 7824 | 10년 전 | 453 | ||
| 7823 | 10년 전 | 397 | ||
| 7822 | 10년 전 | 373 | ||
| 7821 | 10년 전 | 320 | ||
| 7820 | 10년 전 | 357 | ||
| 7819 |
|
10년 전 | 754 | |
| 7818 | 10년 전 | 401 | ||
| 7817 | 10년 전 | 534 | ||
| 7816 | 10년 전 | 420 | ||
| 7815 | 10년 전 | 619 | ||
| 7814 | 10년 전 | 446 | ||
| 7813 | 10년 전 | 397 | ||
| 7812 | 10년 전 | 412 | ||
| 7811 | 10년 전 | 399 | ||
| 7810 | 10년 전 | 582 | ||
| 7809 | 10년 전 | 513 | ||
| 7808 | 10년 전 | 386 | ||
| 7807 | 10년 전 | 417 | ||
| 7806 |
프로그래머7
|
10년 전 | 1343 | |
| 7805 | 10년 전 | 1287 | ||
| 7804 |
zahir1312
|
10년 전 | 787 | |
| 7803 |
|
10년 전 | 1383 | |
| 7802 | 10년 전 | 471 | ||
| 7801 | 10년 전 | 869 | ||
| 7800 | 10년 전 | 1088 | ||
| 7799 | 10년 전 | 567 | ||
| 7798 | 10년 전 | 522 | ||
| 7797 | 10년 전 | 526 | ||
| 7796 | 10년 전 | 365 | ||
| 7795 | 10년 전 | 518 | ||
| 7794 | 10년 전 | 567 | ||
| 7793 | 10년 전 | 1065 | ||
| 7792 | 10년 전 | 488 | ||
| 7791 | 10년 전 | 564 | ||
| 7790 | 10년 전 | 520 | ||
| 7789 |
fbastore
|
10년 전 | 1456 | |
| 7788 | 10년 전 | 557 | ||
| 7787 | 10년 전 | 414 | ||
| 7786 | 10년 전 | 605 | ||
| 7785 | 10년 전 | 597 | ||
| 7784 | 10년 전 | 654 | ||
| 7783 | 10년 전 | 464 | ||
| 7782 | 10년 전 | 502 | ||
| 7781 | 10년 전 | 909 | ||
| 7780 | 10년 전 | 829 | ||
| 7779 | 10년 전 | 780 | ||
| 7778 | 10년 전 | 369 | ||
| 7777 | 10년 전 | 472 | ||
| 7776 | 10년 전 | 468 | ||
| 7775 | 10년 전 | 416 | ||
| 7774 | 10년 전 | 637 | ||
| 7773 | 10년 전 | 393 | ||
| 7772 | 10년 전 | 746 | ||
| 7771 | 10년 전 | 399 | ||
| 7770 | 10년 전 | 654 | ||
| 7769 | 10년 전 | 401 | ||
| 7768 | 10년 전 | 624 | ||
| 7767 | 10년 전 | 1184 | ||
| 7766 | 10년 전 | 499 | ||
| 7765 | 10년 전 | 546 | ||
| 7764 |
잘살아보자
|
10년 전 | 403 | |
| 7763 |
|
10년 전 | 1470 | |
| 7762 |
Tosea
|
10년 전 | 1067 | |
| 7761 | 10년 전 | 661 | ||
| 7760 |
잘살아보자
|
10년 전 | 696 | |
| 7759 |
잘살아보자
|
10년 전 | 525 | |
| 7758 |
잘살아보자
|
10년 전 | 605 | |
| 7757 | 10년 전 | 1250 | ||
| 7756 |
ITBANK
|
10년 전 | 1266 | |
| 7755 | 10년 전 | 1935 | ||
| 7754 | 10년 전 | 1064 | ||
| 7753 | 10년 전 | 895 | ||
| 7752 | 10년 전 | 1408 | ||
| 7751 |
잘살아보자
|
10년 전 | 546 | |
| 7750 |
잘살아보자
|
10년 전 | 487 | |
| 7749 |
잘살아보자
|
10년 전 | 497 | |
| 7748 |
잘살아보자
|
10년 전 | 512 | |
| 7747 |
잘살아보자
|
10년 전 | 603 | |
| 7746 |
잘살아보자
|
10년 전 | 687 | |
| 7745 |
잘살아보자
|
10년 전 | 925 | |
| 7744 |
잘살아보자
|
10년 전 | 424 | |
| 7743 | 10년 전 | 958 | ||
| 7742 |
starbros
|
10년 전 | 849 | |
| 7741 |
잘살아보자
|
10년 전 | 682 | |
| 7740 |
잘살아보자
|
10년 전 | 556 | |
| 7739 |
잘살아보자
|
10년 전 | 472 | |
| 7738 |
잘살아보자
|
10년 전 | 547 | |
| 7737 |
잘살아보자
|
10년 전 | 518 | |
| 7736 |
잘살아보자
|
10년 전 | 536 | |
| 7735 |
잘살아보자
|
10년 전 | 859 | |
| 7734 |
잘살아보자
|
10년 전 | 437 | |
| 7733 |
잘살아보자
|
10년 전 | 551 | |
| 7732 |
잘살아보자
|
10년 전 | 709 | |
| 7731 |
잘살아보자
|
10년 전 | 630 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기