<?
$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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 483 | ||
| 7929 | 9년 전 | 418 | ||
| 7928 | 9년 전 | 490 | ||
| 7927 | 9년 전 | 399 | ||
| 7926 | 9년 전 | 708 | ||
| 7925 | 9년 전 | 433 | ||
| 7924 | 9년 전 | 416 | ||
| 7923 | 9년 전 | 406 | ||
| 7922 | 9년 전 | 426 | ||
| 7921 | 9년 전 | 443 | ||
| 7920 | 9년 전 | 350 | ||
| 7919 | 9년 전 | 361 | ||
| 7918 | 9년 전 | 514 | ||
| 7917 | 9년 전 | 369 | ||
| 7916 | 9년 전 | 457 | ||
| 7915 | 9년 전 | 475 | ||
| 7914 | 9년 전 | 481 | ||
| 7913 | 9년 전 | 657 | ||
| 7912 | 9년 전 | 494 | ||
| 7911 | 9년 전 | 417 | ||
| 7910 | 9년 전 | 465 | ||
| 7909 | 9년 전 | 580 | ||
| 7908 | 9년 전 | 514 | ||
| 7907 | 9년 전 | 455 | ||
| 7906 | 9년 전 | 476 | ||
| 7905 | 9년 전 | 438 | ||
| 7904 | 9년 전 | 427 | ||
| 7903 | 9년 전 | 436 | ||
| 7902 | 9년 전 | 613 | ||
| 7901 |
|
9년 전 | 782 | |
| 7900 | 9년 전 | 671 | ||
| 7899 | 9년 전 | 458 | ||
| 7898 | 9년 전 | 454 | ||
| 7897 | 9년 전 | 409 | ||
| 7896 | 9년 전 | 428 | ||
| 7895 | 9년 전 | 548 | ||
| 7894 | 9년 전 | 453 | ||
| 7893 | 9년 전 | 429 | ||
| 7892 | 9년 전 | 468 | ||
| 7891 | 9년 전 | 823 | ||
| 7890 | 9년 전 | 1245 | ||
| 7889 | 9년 전 | 786 | ||
| 7888 |
limsy1987
|
9년 전 | 599 | |
| 7887 | 9년 전 | 644 | ||
| 7886 | 9년 전 | 531 | ||
| 7885 | 9년 전 | 501 | ||
| 7884 | 9년 전 | 493 | ||
| 7883 | 9년 전 | 499 | ||
| 7882 | 9년 전 | 556 | ||
| 7881 | 9년 전 | 533 | ||
| 7880 | 9년 전 | 652 | ||
| 7879 | 10년 전 | 541 | ||
| 7878 | 10년 전 | 1305 | ||
| 7877 | 10년 전 | 834 | ||
| 7876 | 10년 전 | 571 | ||
| 7875 | 10년 전 | 644 | ||
| 7874 |
|
10년 전 | 849 | |
| 7873 | 10년 전 | 569 | ||
| 7872 | 10년 전 | 734 | ||
| 7871 | 10년 전 | 549 | ||
| 7870 | 10년 전 | 669 | ||
| 7869 | 10년 전 | 485 | ||
| 7868 | 10년 전 | 528 | ||
| 7867 | 10년 전 | 532 | ||
| 7866 | 10년 전 | 588 | ||
| 7865 | 10년 전 | 533 | ||
| 7864 | 10년 전 | 587 | ||
| 7863 | 10년 전 | 585 | ||
| 7862 | 10년 전 | 555 | ||
| 7861 | 10년 전 | 727 | ||
| 7860 | 10년 전 | 701 | ||
| 7859 | 10년 전 | 471 | ||
| 7858 | 10년 전 | 778 | ||
| 7857 | 10년 전 | 1166 | ||
| 7856 | 10년 전 | 591 | ||
| 7855 | 10년 전 | 833 | ||
| 7854 | 10년 전 | 772 | ||
| 7853 | 10년 전 | 672 | ||
| 7852 | 10년 전 | 587 | ||
| 7851 | 10년 전 | 589 | ||
| 7850 | 10년 전 | 664 | ||
| 7849 | 10년 전 | 439 | ||
| 7848 | 10년 전 | 503 | ||
| 7847 | 10년 전 | 738 | ||
| 7846 | 10년 전 | 523 | ||
| 7845 | 10년 전 | 499 | ||
| 7844 | 10년 전 | 466 | ||
| 7843 | 10년 전 | 502 | ||
| 7842 | 10년 전 | 483 | ||
| 7841 | 10년 전 | 451 | ||
| 7840 | 10년 전 | 473 | ||
| 7839 | 10년 전 | 518 | ||
| 7838 | 10년 전 | 585 | ||
| 7837 | 10년 전 | 413 | ||
| 7836 | 10년 전 | 456 | ||
| 7835 | 10년 전 | 545 | ||
| 7834 |
|
10년 전 | 1244 | |
| 7833 | 10년 전 | 502 | ||
| 7832 | 10년 전 | 486 | ||
| 7831 | 10년 전 | 659 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기