<?
$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년 전 | 444 | ||
| 7829 |
|
9년 전 | 626 | |
| 7828 | 10년 전 | 556 | ||
| 7827 | 10년 전 | 453 | ||
| 7826 | 10년 전 | 458 | ||
| 7825 | 10년 전 | 502 | ||
| 7824 | 10년 전 | 462 | ||
| 7823 | 10년 전 | 407 | ||
| 7822 | 10년 전 | 381 | ||
| 7821 | 10년 전 | 325 | ||
| 7820 | 10년 전 | 360 | ||
| 7819 |
|
10년 전 | 759 | |
| 7818 | 10년 전 | 406 | ||
| 7817 | 10년 전 | 554 | ||
| 7816 | 10년 전 | 427 | ||
| 7815 | 10년 전 | 622 | ||
| 7814 | 10년 전 | 455 | ||
| 7813 | 10년 전 | 406 | ||
| 7812 | 10년 전 | 420 | ||
| 7811 | 10년 전 | 404 | ||
| 7810 | 10년 전 | 590 | ||
| 7809 | 10년 전 | 522 | ||
| 7808 | 10년 전 | 402 | ||
| 7807 | 10년 전 | 426 | ||
| 7806 |
프로그래머7
|
10년 전 | 1351 | |
| 7805 | 10년 전 | 1294 | ||
| 7804 |
zahir1312
|
10년 전 | 790 | |
| 7803 |
|
10년 전 | 1391 | |
| 7802 | 10년 전 | 484 | ||
| 7801 | 10년 전 | 876 | ||
| 7800 | 10년 전 | 1094 | ||
| 7799 | 10년 전 | 574 | ||
| 7798 | 10년 전 | 529 | ||
| 7797 | 10년 전 | 538 | ||
| 7796 | 10년 전 | 377 | ||
| 7795 | 10년 전 | 529 | ||
| 7794 | 10년 전 | 576 | ||
| 7793 | 10년 전 | 1074 | ||
| 7792 | 10년 전 | 494 | ||
| 7791 | 10년 전 | 579 | ||
| 7790 | 10년 전 | 523 | ||
| 7789 |
fbastore
|
10년 전 | 1464 | |
| 7788 | 10년 전 | 570 | ||
| 7787 | 10년 전 | 422 | ||
| 7786 | 10년 전 | 622 | ||
| 7785 | 10년 전 | 607 | ||
| 7784 | 10년 전 | 663 | ||
| 7783 | 10년 전 | 472 | ||
| 7782 | 10년 전 | 511 | ||
| 7781 | 10년 전 | 915 | ||
| 7780 | 10년 전 | 838 | ||
| 7779 | 10년 전 | 786 | ||
| 7778 | 10년 전 | 374 | ||
| 7777 | 10년 전 | 483 | ||
| 7776 | 10년 전 | 476 | ||
| 7775 | 10년 전 | 420 | ||
| 7774 | 10년 전 | 639 | ||
| 7773 | 10년 전 | 395 | ||
| 7772 | 10년 전 | 754 | ||
| 7771 | 10년 전 | 410 | ||
| 7770 | 10년 전 | 657 | ||
| 7769 | 10년 전 | 409 | ||
| 7768 | 10년 전 | 630 | ||
| 7767 | 10년 전 | 1192 | ||
| 7766 | 10년 전 | 512 | ||
| 7765 | 10년 전 | 557 | ||
| 7764 |
잘살아보자
|
10년 전 | 417 | |
| 7763 |
|
10년 전 | 1480 | |
| 7762 |
Tosea
|
10년 전 | 1076 | |
| 7761 | 10년 전 | 669 | ||
| 7760 |
잘살아보자
|
10년 전 | 708 | |
| 7759 |
잘살아보자
|
10년 전 | 547 | |
| 7758 |
잘살아보자
|
10년 전 | 616 | |
| 7757 | 10년 전 | 1255 | ||
| 7756 |
ITBANK
|
10년 전 | 1270 | |
| 7755 | 10년 전 | 1937 | ||
| 7754 | 10년 전 | 1075 | ||
| 7753 | 10년 전 | 898 | ||
| 7752 | 10년 전 | 1412 | ||
| 7751 |
잘살아보자
|
10년 전 | 555 | |
| 7750 |
잘살아보자
|
10년 전 | 491 | |
| 7749 |
잘살아보자
|
10년 전 | 506 | |
| 7748 |
잘살아보자
|
10년 전 | 527 | |
| 7747 |
잘살아보자
|
10년 전 | 610 | |
| 7746 |
잘살아보자
|
10년 전 | 691 | |
| 7745 |
잘살아보자
|
10년 전 | 931 | |
| 7744 |
잘살아보자
|
10년 전 | 433 | |
| 7743 | 10년 전 | 959 | ||
| 7742 |
starbros
|
10년 전 | 855 | |
| 7741 |
잘살아보자
|
10년 전 | 689 | |
| 7740 |
잘살아보자
|
10년 전 | 568 | |
| 7739 |
잘살아보자
|
10년 전 | 476 | |
| 7738 |
잘살아보자
|
10년 전 | 552 | |
| 7737 |
잘살아보자
|
10년 전 | 525 | |
| 7736 |
잘살아보자
|
10년 전 | 542 | |
| 7735 |
잘살아보자
|
10년 전 | 875 | |
| 7734 |
잘살아보자
|
10년 전 | 442 | |
| 7733 |
잘살아보자
|
10년 전 | 555 | |
| 7732 |
잘살아보자
|
10년 전 | 714 | |
| 7731 |
잘살아보자
|
10년 전 | 632 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기