<?
$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>
$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>
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 367 | ||
| 7829 |
|
9년 전 | 546 | |
| 7828 | 9년 전 | 478 | ||
| 7827 | 9년 전 | 366 | ||
| 7826 | 9년 전 | 373 | ||
| 7825 | 9년 전 | 425 | ||
| 7824 | 9년 전 | 412 | ||
| 7823 | 9년 전 | 314 | ||
| 7822 | 9년 전 | 313 | ||
| 7821 | 9년 전 | 261 | ||
| 7820 | 9년 전 | 312 | ||
| 7819 |
|
9년 전 | 712 | |
| 7818 | 10년 전 | 334 | ||
| 7817 | 10년 전 | 440 | ||
| 7816 | 10년 전 | 352 | ||
| 7815 | 10년 전 | 552 | ||
| 7814 | 10년 전 | 372 | ||
| 7813 | 10년 전 | 311 | ||
| 7812 | 10년 전 | 338 | ||
| 7811 | 10년 전 | 358 | ||
| 7810 | 10년 전 | 482 | ||
| 7809 | 10년 전 | 429 | ||
| 7808 | 10년 전 | 281 | ||
| 7807 | 10년 전 | 343 | ||
| 7806 |
프로그래머7
|
10년 전 | 1300 | |
| 7805 | 10년 전 | 1207 | ||
| 7804 |
zahir1312
|
10년 전 | 739 | |
| 7803 |
|
10년 전 | 1337 | |
| 7802 | 10년 전 | 392 | ||
| 7801 | 10년 전 | 821 | ||
| 7800 | 10년 전 | 1035 | ||
| 7799 | 10년 전 | 495 | ||
| 7798 | 10년 전 | 442 | ||
| 7797 | 10년 전 | 442 | ||
| 7796 | 10년 전 | 297 | ||
| 7795 | 10년 전 | 448 | ||
| 7794 | 10년 전 | 471 | ||
| 7793 | 10년 전 | 989 | ||
| 7792 | 10년 전 | 397 | ||
| 7791 | 10년 전 | 477 | ||
| 7790 | 10년 전 | 447 | ||
| 7789 |
fbastore
|
10년 전 | 1384 | |
| 7788 | 10년 전 | 481 | ||
| 7787 | 10년 전 | 343 | ||
| 7786 | 10년 전 | 495 | ||
| 7785 | 10년 전 | 514 | ||
| 7784 | 10년 전 | 580 | ||
| 7783 | 10년 전 | 383 | ||
| 7782 | 10년 전 | 436 | ||
| 7781 | 10년 전 | 840 | ||
| 7780 | 10년 전 | 772 | ||
| 7779 | 10년 전 | 745 | ||
| 7778 | 10년 전 | 313 | ||
| 7777 | 10년 전 | 388 | ||
| 7776 | 10년 전 | 393 | ||
| 7775 | 10년 전 | 331 | ||
| 7774 | 10년 전 | 595 | ||
| 7773 | 10년 전 | 317 | ||
| 7772 | 10년 전 | 660 | ||
| 7771 | 10년 전 | 322 | ||
| 7770 | 10년 전 | 606 | ||
| 7769 | 10년 전 | 318 | ||
| 7768 | 10년 전 | 540 | ||
| 7767 | 10년 전 | 1114 | ||
| 7766 | 10년 전 | 438 | ||
| 7765 | 10년 전 | 462 | ||
| 7764 |
잘살아보자
|
10년 전 | 321 | |
| 7763 |
|
10년 전 | 1393 | |
| 7762 |
Tosea
|
10년 전 | 1013 | |
| 7761 | 10년 전 | 610 | ||
| 7760 |
잘살아보자
|
10년 전 | 583 | |
| 7759 |
잘살아보자
|
10년 전 | 401 | |
| 7758 |
잘살아보자
|
10년 전 | 521 | |
| 7757 | 10년 전 | 1171 | ||
| 7756 |
ITBANK
|
10년 전 | 1214 | |
| 7755 | 10년 전 | 1892 | ||
| 7754 | 10년 전 | 983 | ||
| 7753 | 10년 전 | 838 | ||
| 7752 | 10년 전 | 1338 | ||
| 7751 |
잘살아보자
|
10년 전 | 466 | |
| 7750 |
잘살아보자
|
10년 전 | 429 | |
| 7749 |
잘살아보자
|
10년 전 | 429 | |
| 7748 |
잘살아보자
|
10년 전 | 417 | |
| 7747 |
잘살아보자
|
10년 전 | 502 | |
| 7746 |
잘살아보자
|
10년 전 | 618 | |
| 7745 |
잘살아보자
|
10년 전 | 865 | |
| 7744 |
잘살아보자
|
10년 전 | 383 | |
| 7743 | 10년 전 | 910 | ||
| 7742 |
starbros
|
10년 전 | 781 | |
| 7741 |
잘살아보자
|
10년 전 | 593 | |
| 7740 |
잘살아보자
|
10년 전 | 469 | |
| 7739 |
잘살아보자
|
10년 전 | 428 | |
| 7738 |
잘살아보자
|
10년 전 | 483 | |
| 7737 |
잘살아보자
|
10년 전 | 436 | |
| 7736 |
잘살아보자
|
10년 전 | 462 | |
| 7735 |
잘살아보자
|
10년 전 | 796 | |
| 7734 |
잘살아보자
|
10년 전 | 388 | |
| 7733 |
잘살아보자
|
10년 전 | 484 | |
| 7732 |
잘살아보자
|
10년 전 | 639 | |
| 7731 |
잘살아보자
|
10년 전 | 564 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기