<?
$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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 502 | ||
| 8129 |
|
9년 전 | 651 | |
| 8128 | 9년 전 | 516 | ||
| 8127 |
|
9년 전 | 572 | |
| 8126 | 9년 전 | 503 | ||
| 8125 | 9년 전 | 761 | ||
| 8124 |
|
9년 전 | 509 | |
| 8123 | 9년 전 | 493 | ||
| 8122 | 9년 전 | 431 | ||
| 8121 | 9년 전 | 529 | ||
| 8120 | 9년 전 | 460 | ||
| 8119 | 9년 전 | 543 | ||
| 8118 |
|
9년 전 | 628 | |
| 8117 |
|
9년 전 | 397 | |
| 8116 |
PASKRAN
|
9년 전 | 465 | |
| 8115 | 9년 전 | 455 | ||
| 8114 |
kiplayer
|
9년 전 | 595 | |
| 8113 | 9년 전 | 435 | ||
| 8112 |
|
9년 전 | 554 | |
| 8111 | 9년 전 | 406 | ||
| 8110 | 9년 전 | 440 | ||
| 8109 | 9년 전 | 359 | ||
| 8108 |
|
9년 전 | 537 | |
| 8107 |
|
9년 전 | 435 | |
| 8106 |
|
9년 전 | 427 | |
| 8105 | 9년 전 | 472 | ||
| 8104 |
|
9년 전 | 426 | |
| 8103 |
|
9년 전 | 425 | |
| 8102 |
|
9년 전 | 389 | |
| 8101 |
snshero
|
9년 전 | 776 | |
| 8100 | 9년 전 | 833 | ||
| 8099 | 9년 전 | 803 | ||
| 8098 | 9년 전 | 709 | ||
| 8097 | 9년 전 | 510 | ||
| 8096 | 9년 전 | 706 | ||
| 8095 | 9년 전 | 836 | ||
| 8094 | 9년 전 | 508 | ||
| 8093 | 9년 전 | 791 | ||
| 8092 | 9년 전 | 753 | ||
| 8091 | 9년 전 | 1138 | ||
| 8090 | 9년 전 | 759 | ||
| 8089 | 9년 전 | 967 | ||
| 8088 | 9년 전 | 635 | ||
| 8087 | 9년 전 | 750 | ||
| 8086 | 9년 전 | 514 | ||
| 8085 | 9년 전 | 482 | ||
| 8084 | 9년 전 | 607 | ||
| 8083 | 9년 전 | 580 | ||
| 8082 | 9년 전 | 751 | ||
| 8081 | 9년 전 | 466 | ||
| 8080 | 9년 전 | 562 | ||
| 8079 | 9년 전 | 513 | ||
| 8078 | 9년 전 | 442 | ||
| 8077 | 9년 전 | 523 | ||
| 8076 | 9년 전 | 401 | ||
| 8075 | 9년 전 | 432 | ||
| 8074 | 9년 전 | 389 | ||
| 8073 | 9년 전 | 443 | ||
| 8072 | 9년 전 | 434 | ||
| 8071 |
o1o111
|
9년 전 | 889 | |
| 8070 | 9년 전 | 395 | ||
| 8069 | 9년 전 | 331 | ||
| 8068 | 9년 전 | 579 | ||
| 8067 | 9년 전 | 387 | ||
| 8066 | 9년 전 | 422 | ||
| 8065 | 9년 전 | 376 | ||
| 8064 | 9년 전 | 358 | ||
| 8063 | 9년 전 | 331 | ||
| 8062 | 9년 전 | 300 | ||
| 8061 | 9년 전 | 347 | ||
| 8060 | 9년 전 | 382 | ||
| 8059 | 9년 전 | 314 | ||
| 8058 | 9년 전 | 249 | ||
| 8057 | 9년 전 | 382 | ||
| 8056 | 9년 전 | 303 | ||
| 8055 | 9년 전 | 339 | ||
| 8054 | 9년 전 | 356 | ||
| 8053 | 9년 전 | 408 | ||
| 8052 | 9년 전 | 288 | ||
| 8051 | 9년 전 | 325 | ||
| 8050 | 9년 전 | 386 | ||
| 8049 | 9년 전 | 316 | ||
| 8048 | 9년 전 | 430 | ||
| 8047 | 9년 전 | 350 | ||
| 8046 | 9년 전 | 295 | ||
| 8045 | 9년 전 | 251 | ||
| 8044 | 9년 전 | 341 | ||
| 8043 | 9년 전 | 282 | ||
| 8042 | 9년 전 | 284 | ||
| 8041 | 9년 전 | 335 | ||
| 8040 | 9년 전 | 267 | ||
| 8039 | 9년 전 | 315 | ||
| 8038 | 9년 전 | 265 | ||
| 8037 | 9년 전 | 396 | ||
| 8036 | 9년 전 | 475 | ||
| 8035 | 9년 전 | 423 | ||
| 8034 | 9년 전 | 383 | ||
| 8033 | 9년 전 | 343 | ||
| 8032 | 9년 전 | 424 | ||
| 8031 | 9년 전 | 339 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기