<?
$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년 전 | 421 | ||
| 7929 | 9년 전 | 348 | ||
| 7928 | 9년 전 | 437 | ||
| 7927 | 9년 전 | 356 | ||
| 7926 | 9년 전 | 673 | ||
| 7925 | 9년 전 | 377 | ||
| 7924 | 9년 전 | 357 | ||
| 7923 | 9년 전 | 359 | ||
| 7922 | 9년 전 | 392 | ||
| 7921 | 9년 전 | 408 | ||
| 7920 | 9년 전 | 328 | ||
| 7919 | 9년 전 | 342 | ||
| 7918 | 9년 전 | 497 | ||
| 7917 | 9년 전 | 349 | ||
| 7916 | 9년 전 | 422 | ||
| 7915 | 9년 전 | 423 | ||
| 7914 | 9년 전 | 435 | ||
| 7913 | 9년 전 | 599 | ||
| 7912 | 9년 전 | 439 | ||
| 7911 | 9년 전 | 379 | ||
| 7910 | 9년 전 | 421 | ||
| 7909 | 9년 전 | 526 | ||
| 7908 | 9년 전 | 448 | ||
| 7907 | 9년 전 | 392 | ||
| 7906 | 9년 전 | 411 | ||
| 7905 | 9년 전 | 388 | ||
| 7904 | 9년 전 | 373 | ||
| 7903 | 9년 전 | 363 | ||
| 7902 | 9년 전 | 571 | ||
| 7901 |
|
9년 전 | 752 | |
| 7900 | 9년 전 | 611 | ||
| 7899 | 9년 전 | 406 | ||
| 7898 | 9년 전 | 405 | ||
| 7897 | 9년 전 | 364 | ||
| 7896 | 9년 전 | 371 | ||
| 7895 | 9년 전 | 483 | ||
| 7894 | 9년 전 | 409 | ||
| 7893 | 9년 전 | 365 | ||
| 7892 | 9년 전 | 413 | ||
| 7891 | 9년 전 | 781 | ||
| 7890 | 9년 전 | 1206 | ||
| 7889 | 9년 전 | 755 | ||
| 7888 |
limsy1987
|
9년 전 | 559 | |
| 7887 | 9년 전 | 577 | ||
| 7886 | 9년 전 | 467 | ||
| 7885 | 9년 전 | 428 | ||
| 7884 | 9년 전 | 428 | ||
| 7883 | 9년 전 | 426 | ||
| 7882 | 9년 전 | 480 | ||
| 7881 | 9년 전 | 458 | ||
| 7880 | 9년 전 | 595 | ||
| 7879 | 9년 전 | 482 | ||
| 7878 | 9년 전 | 1238 | ||
| 7877 | 9년 전 | 768 | ||
| 7876 | 9년 전 | 506 | ||
| 7875 | 9년 전 | 578 | ||
| 7874 |
|
9년 전 | 819 | |
| 7873 | 9년 전 | 530 | ||
| 7872 | 9년 전 | 693 | ||
| 7871 | 9년 전 | 496 | ||
| 7870 | 9년 전 | 625 | ||
| 7869 | 9년 전 | 443 | ||
| 7868 | 9년 전 | 472 | ||
| 7867 | 9년 전 | 453 | ||
| 7866 | 9년 전 | 516 | ||
| 7865 | 9년 전 | 466 | ||
| 7864 | 9년 전 | 531 | ||
| 7863 | 9년 전 | 527 | ||
| 7862 | 9년 전 | 479 | ||
| 7861 | 9년 전 | 662 | ||
| 7860 | 9년 전 | 636 | ||
| 7859 | 9년 전 | 428 | ||
| 7858 | 9년 전 | 716 | ||
| 7857 | 9년 전 | 1097 | ||
| 7856 | 9년 전 | 543 | ||
| 7855 | 9년 전 | 771 | ||
| 7854 | 9년 전 | 736 | ||
| 7853 | 9년 전 | 598 | ||
| 7852 | 9년 전 | 529 | ||
| 7851 | 9년 전 | 526 | ||
| 7850 | 9년 전 | 601 | ||
| 7849 | 9년 전 | 372 | ||
| 7848 | 9년 전 | 432 | ||
| 7847 | 9년 전 | 676 | ||
| 7846 | 9년 전 | 469 | ||
| 7845 | 9년 전 | 441 | ||
| 7844 | 9년 전 | 409 | ||
| 7843 | 9년 전 | 434 | ||
| 7842 | 9년 전 | 420 | ||
| 7841 | 9년 전 | 398 | ||
| 7840 | 9년 전 | 416 | ||
| 7839 | 9년 전 | 448 | ||
| 7838 | 9년 전 | 525 | ||
| 7837 | 9년 전 | 372 | ||
| 7836 | 9년 전 | 414 | ||
| 7835 | 9년 전 | 489 | ||
| 7834 |
|
9년 전 | 1203 | |
| 7833 | 9년 전 | 452 | ||
| 7832 | 9년 전 | 435 | ||
| 7831 | 9년 전 | 582 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기