<?
$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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7730 | 10년 전 | 1308 | ||
| 7729 | 10년 전 | 1140 | ||
| 7728 |
잘살아보자
|
10년 전 | 594 | |
| 7727 |
잘살아보자
|
10년 전 | 496 | |
| 7726 |
잘살아보자
|
10년 전 | 820 | |
| 7725 |
잘살아보자
|
10년 전 | 549 | |
| 7724 |
잘살아보자
|
10년 전 | 460 | |
| 7723 |
잘살아보자
|
10년 전 | 526 | |
| 7722 |
잘살아보자
|
10년 전 | 472 | |
| 7721 |
잘살아보자
|
10년 전 | 506 | |
| 7720 |
잘살아보자
|
10년 전 | 459 | |
| 7719 |
비긴어게인
|
10년 전 | 688 | |
| 7718 |
|
10년 전 | 2534 | |
| 7717 |
잘살아보자
|
10년 전 | 647 | |
| 7716 |
잘살아보자
|
10년 전 | 394 | |
| 7715 |
잘살아보자
|
10년 전 | 427 | |
| 7714 |
잘살아보자
|
10년 전 | 490 | |
| 7713 | 10년 전 | 1784 | ||
| 7712 | 10년 전 | 1708 | ||
| 7711 | 10년 전 | 1099 | ||
| 7710 | 10년 전 | 1396 | ||
| 7709 | 10년 전 | 1515 | ||
| 7708 | 10년 전 | 1458 | ||
| 7707 | 10년 전 | 855 | ||
| 7706 |
별지기천사
|
10년 전 | 568 | |
| 7705 | 10년 전 | 1068 | ||
| 7704 |
ICONdesignstudio
|
10년 전 | 615 | |
| 7703 | 10년 전 | 586 | ||
| 7702 |
|
10년 전 | 723 | |
| 7701 | 10년 전 | 1408 | ||
| 7700 | 10년 전 | 1102 | ||
| 7699 | 10년 전 | 581 | ||
| 7698 | 10년 전 | 1138 | ||
| 7697 | 10년 전 | 5162 | ||
| 7696 | 10년 전 | 649 | ||
| 7695 | 10년 전 | 1684 | ||
| 7694 | 10년 전 | 1056 | ||
| 7693 | 10년 전 | 1551 | ||
| 7692 | 10년 전 | 1292 | ||
| 7691 | 10년 전 | 813 | ||
| 7690 | 10년 전 | 1387 | ||
| 7689 | 10년 전 | 1012 | ||
| 7688 | 10년 전 | 610 | ||
| 7687 |
파랑새1597
|
10년 전 | 588 | |
| 7686 | 10년 전 | 846 | ||
| 7685 | 10년 전 | 1339 | ||
| 7684 | 10년 전 | 798 | ||
| 7683 | 10년 전 | 1085 | ||
| 7682 | 10년 전 | 1010 | ||
| 7681 | 10년 전 | 655 | ||
| 7680 | 10년 전 | 986 | ||
| 7679 | 10년 전 | 501 | ||
| 7678 | 10년 전 | 732 | ||
| 7677 | 10년 전 | 631 | ||
| 7676 |
|
10년 전 | 943 | |
| 7675 |
|
10년 전 | 1172 | |
| 7674 | 10년 전 | 1048 | ||
| 7673 | 10년 전 | 752 | ||
| 7672 | 10년 전 | 1091 | ||
| 7671 | 10년 전 | 885 | ||
| 7670 | 10년 전 | 654 | ||
| 7669 |
mashmellow
|
10년 전 | 1231 | |
| 7668 | 10년 전 | 717 | ||
| 7667 | 10년 전 | 1007 | ||
| 7666 |
senseme
|
10년 전 | 652 | |
| 7665 | 10년 전 | 503 | ||
| 7664 | 10년 전 | 1894 | ||
| 7663 |
mixx애교
|
10년 전 | 981 | |
| 7662 | 10년 전 | 1036 | ||
| 7661 |
hkhkah
|
10년 전 | 786 | |
| 7660 | 10년 전 | 1059 | ||
| 7659 |
커네드커네드
|
10년 전 | 930 | |
| 7658 |
바람돌이팡
|
10년 전 | 672 | |
| 7657 | 10년 전 | 1165 | ||
| 7656 | 10년 전 | 1568 | ||
| 7655 | 10년 전 | 984 | ||
| 7654 |
개발짜증나
|
10년 전 | 856 | |
| 7653 |
네이비칼라
|
10년 전 | 878 | |
| 7652 |
밥먹고합시다
|
10년 전 | 815 | |
| 7651 |
플라이SINJI
|
10년 전 | 1510 | |
| 7650 |
개발짜증나
|
10년 전 | 1411 | |
| 7649 | 10년 전 | 452 | ||
| 7648 |
이미영ㅇㅇ
|
10년 전 | 863 | |
| 7647 | 10년 전 | 435 | ||
| 7646 | 10년 전 | 801 | ||
| 7645 | 10년 전 | 2319 | ||
| 7644 | 10년 전 | 818 | ||
| 7643 |
|
10년 전 | 2872 | |
| 7642 | 10년 전 | 1508 | ||
| 7641 | 10년 전 | 1137 | ||
| 7640 |
개발짜증나
|
10년 전 | 473 | |
| 7639 |
|
10년 전 | 811 | |
| 7638 |
개발짜증나
|
10년 전 | 1132 | |
| 7637 | 10년 전 | 1547 | ||
| 7636 | 10년 전 | 2914 | ||
| 7635 | 10년 전 | 1690 | ||
| 7634 | 10년 전 | 1879 | ||
| 7633 | 10년 전 | 2334 | ||
| 7632 | 10년 전 | 3941 | ||
| 7631 |
|
10년 전 | 1532 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기