<?
$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년 전 | 396 | ||
| 7929 | 9년 전 | 313 | ||
| 7928 | 9년 전 | 404 | ||
| 7927 | 9년 전 | 326 | ||
| 7926 | 9년 전 | 656 | ||
| 7925 | 9년 전 | 339 | ||
| 7924 | 9년 전 | 326 | ||
| 7923 | 9년 전 | 332 | ||
| 7922 | 9년 전 | 366 | ||
| 7921 | 9년 전 | 394 | ||
| 7920 | 9년 전 | 312 | ||
| 7919 | 9년 전 | 330 | ||
| 7918 | 9년 전 | 484 | ||
| 7917 | 9년 전 | 323 | ||
| 7916 | 9년 전 | 397 | ||
| 7915 | 9년 전 | 395 | ||
| 7914 | 9년 전 | 403 | ||
| 7913 | 9년 전 | 555 | ||
| 7912 | 9년 전 | 404 | ||
| 7911 | 9년 전 | 352 | ||
| 7910 | 9년 전 | 397 | ||
| 7909 | 9년 전 | 496 | ||
| 7908 | 9년 전 | 411 | ||
| 7907 | 9년 전 | 356 | ||
| 7906 | 9년 전 | 375 | ||
| 7905 | 9년 전 | 354 | ||
| 7904 | 9년 전 | 340 | ||
| 7903 | 9년 전 | 338 | ||
| 7902 | 9년 전 | 547 | ||
| 7901 |
|
9년 전 | 725 | |
| 7900 | 9년 전 | 566 | ||
| 7899 | 9년 전 | 365 | ||
| 7898 | 9년 전 | 374 | ||
| 7897 | 9년 전 | 329 | ||
| 7896 | 9년 전 | 349 | ||
| 7895 | 9년 전 | 457 | ||
| 7894 | 9년 전 | 374 | ||
| 7893 | 9년 전 | 321 | ||
| 7892 | 9년 전 | 372 | ||
| 7891 | 9년 전 | 750 | ||
| 7890 | 9년 전 | 1186 | ||
| 7889 | 9년 전 | 741 | ||
| 7888 |
limsy1987
|
9년 전 | 538 | |
| 7887 | 9년 전 | 533 | ||
| 7886 | 9년 전 | 421 | ||
| 7885 | 9년 전 | 391 | ||
| 7884 | 9년 전 | 397 | ||
| 7883 | 9년 전 | 391 | ||
| 7882 | 9년 전 | 433 | ||
| 7881 | 9년 전 | 424 | ||
| 7880 | 9년 전 | 547 | ||
| 7879 | 9년 전 | 447 | ||
| 7878 | 9년 전 | 1205 | ||
| 7877 | 9년 전 | 738 | ||
| 7876 | 9년 전 | 470 | ||
| 7875 | 9년 전 | 546 | ||
| 7874 |
|
9년 전 | 797 | |
| 7873 | 9년 전 | 508 | ||
| 7872 | 9년 전 | 662 | ||
| 7871 | 9년 전 | 470 | ||
| 7870 | 9년 전 | 596 | ||
| 7869 | 9년 전 | 419 | ||
| 7868 | 9년 전 | 429 | ||
| 7867 | 9년 전 | 408 | ||
| 7866 | 9년 전 | 475 | ||
| 7865 | 9년 전 | 438 | ||
| 7864 | 9년 전 | 503 | ||
| 7863 | 9년 전 | 498 | ||
| 7862 | 9년 전 | 458 | ||
| 7861 | 9년 전 | 615 | ||
| 7860 | 9년 전 | 608 | ||
| 7859 | 9년 전 | 397 | ||
| 7858 | 9년 전 | 693 | ||
| 7857 | 9년 전 | 1057 | ||
| 7856 | 9년 전 | 506 | ||
| 7855 | 9년 전 | 729 | ||
| 7854 | 9년 전 | 719 | ||
| 7853 | 9년 전 | 569 | ||
| 7852 | 9년 전 | 498 | ||
| 7851 | 9년 전 | 491 | ||
| 7850 | 9년 전 | 574 | ||
| 7849 | 9년 전 | 351 | ||
| 7848 | 9년 전 | 400 | ||
| 7847 | 9년 전 | 634 | ||
| 7846 | 9년 전 | 443 | ||
| 7845 | 9년 전 | 401 | ||
| 7844 | 9년 전 | 384 | ||
| 7843 | 9년 전 | 400 | ||
| 7842 | 9년 전 | 387 | ||
| 7841 | 9년 전 | 374 | ||
| 7840 | 9년 전 | 390 | ||
| 7839 | 9년 전 | 424 | ||
| 7838 | 9년 전 | 506 | ||
| 7837 | 9년 전 | 343 | ||
| 7836 | 9년 전 | 389 | ||
| 7835 | 9년 전 | 460 | ||
| 7834 |
|
9년 전 | 1184 | |
| 7833 | 9년 전 | 408 | ||
| 7832 | 9년 전 | 404 | ||
| 7831 | 9년 전 | 543 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기