<?
$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년 전 | 365 | ||
| 7929 | 9년 전 | 258 | ||
| 7928 | 9년 전 | 366 | ||
| 7927 | 9년 전 | 295 | ||
| 7926 | 9년 전 | 641 | ||
| 7925 | 9년 전 | 311 | ||
| 7924 | 9년 전 | 282 | ||
| 7923 | 9년 전 | 320 | ||
| 7922 | 9년 전 | 339 | ||
| 7921 | 9년 전 | 372 | ||
| 7920 | 9년 전 | 293 | ||
| 7919 | 9년 전 | 309 | ||
| 7918 | 9년 전 | 473 | ||
| 7917 | 9년 전 | 311 | ||
| 7916 | 9년 전 | 378 | ||
| 7915 | 9년 전 | 363 | ||
| 7914 | 9년 전 | 379 | ||
| 7913 | 9년 전 | 500 | ||
| 7912 | 9년 전 | 374 | ||
| 7911 | 9년 전 | 328 | ||
| 7910 | 9년 전 | 359 | ||
| 7909 | 9년 전 | 469 | ||
| 7908 | 9년 전 | 366 | ||
| 7907 | 9년 전 | 317 | ||
| 7906 | 9년 전 | 334 | ||
| 7905 | 9년 전 | 326 | ||
| 7904 | 9년 전 | 294 | ||
| 7903 | 9년 전 | 290 | ||
| 7902 | 9년 전 | 509 | ||
| 7901 |
|
9년 전 | 716 | |
| 7900 | 9년 전 | 536 | ||
| 7899 | 9년 전 | 344 | ||
| 7898 | 9년 전 | 337 | ||
| 7897 | 9년 전 | 295 | ||
| 7896 | 9년 전 | 314 | ||
| 7895 | 9년 전 | 422 | ||
| 7894 | 9년 전 | 346 | ||
| 7893 | 9년 전 | 275 | ||
| 7892 | 9년 전 | 322 | ||
| 7891 | 9년 전 | 707 | ||
| 7890 | 9년 전 | 1171 | ||
| 7889 | 9년 전 | 729 | ||
| 7888 |
limsy1987
|
9년 전 | 522 | |
| 7887 | 9년 전 | 499 | ||
| 7886 | 9년 전 | 383 | ||
| 7885 | 9년 전 | 358 | ||
| 7884 | 9년 전 | 365 | ||
| 7883 | 9년 전 | 345 | ||
| 7882 | 9년 전 | 359 | ||
| 7881 | 9년 전 | 386 | ||
| 7880 | 9년 전 | 513 | ||
| 7879 | 9년 전 | 410 | ||
| 7878 | 9년 전 | 1153 | ||
| 7877 | 9년 전 | 705 | ||
| 7876 | 9년 전 | 432 | ||
| 7875 | 9년 전 | 505 | ||
| 7874 |
|
9년 전 | 778 | |
| 7873 | 9년 전 | 480 | ||
| 7872 | 9년 전 | 611 | ||
| 7871 | 9년 전 | 443 | ||
| 7870 | 9년 전 | 565 | ||
| 7869 | 9년 전 | 384 | ||
| 7868 | 9년 전 | 377 | ||
| 7867 | 9년 전 | 378 | ||
| 7866 | 9년 전 | 436 | ||
| 7865 | 9년 전 | 394 | ||
| 7864 | 9년 전 | 457 | ||
| 7863 | 9년 전 | 450 | ||
| 7862 | 9년 전 | 426 | ||
| 7861 | 9년 전 | 587 | ||
| 7860 | 9년 전 | 593 | ||
| 7859 | 9년 전 | 362 | ||
| 7858 | 9년 전 | 670 | ||
| 7857 | 9년 전 | 1020 | ||
| 7856 | 9년 전 | 482 | ||
| 7855 | 9년 전 | 696 | ||
| 7854 | 9년 전 | 694 | ||
| 7853 | 9년 전 | 529 | ||
| 7852 | 9년 전 | 470 | ||
| 7851 | 9년 전 | 445 | ||
| 7850 | 9년 전 | 540 | ||
| 7849 | 9년 전 | 312 | ||
| 7848 | 9년 전 | 361 | ||
| 7847 | 9년 전 | 585 | ||
| 7846 | 9년 전 | 402 | ||
| 7845 | 9년 전 | 366 | ||
| 7844 | 9년 전 | 364 | ||
| 7843 | 9년 전 | 368 | ||
| 7842 | 9년 전 | 366 | ||
| 7841 | 9년 전 | 352 | ||
| 7840 | 9년 전 | 358 | ||
| 7839 | 9년 전 | 392 | ||
| 7838 | 9년 전 | 477 | ||
| 7837 | 9년 전 | 317 | ||
| 7836 | 9년 전 | 356 | ||
| 7835 | 9년 전 | 437 | ||
| 7834 |
|
9년 전 | 1167 | |
| 7833 | 9년 전 | 373 | ||
| 7832 | 9년 전 | 363 | ||
| 7831 | 9년 전 | 499 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기