<?
$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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 129 | ||
| 8229 | 9년 전 | 120 | ||
| 8228 |
커네드커네드
|
9년 전 | 160 | |
| 8227 | 9년 전 | 206 | ||
| 8226 | 9년 전 | 221 | ||
| 8225 | 9년 전 | 198 | ||
| 8224 | 9년 전 | 197 | ||
| 8223 | 9년 전 | 174 | ||
| 8222 |
|
9년 전 | 246 | |
| 8221 | 9년 전 | 156 | ||
| 8220 | 9년 전 | 187 | ||
| 8219 | 9년 전 | 153 | ||
| 8218 | 9년 전 | 194 | ||
| 8217 |
star3840
|
9년 전 | 161 | |
| 8216 | 9년 전 | 233 | ||
| 8215 | 9년 전 | 182 | ||
| 8214 | 9년 전 | 290 | ||
| 8213 | 9년 전 | 241 | ||
| 8212 | 9년 전 | 150 | ||
| 8211 | 9년 전 | 326 | ||
| 8210 | 9년 전 | 329 | ||
| 8209 | 9년 전 | 400 | ||
| 8208 | 9년 전 | 297 | ||
| 8207 | 9년 전 | 296 | ||
| 8206 |
|
9년 전 | 251 | |
| 8205 | 9년 전 | 231 | ||
| 8204 | 9년 전 | 208 | ||
| 8203 | 9년 전 | 284 | ||
| 8202 | 9년 전 | 199 | ||
| 8201 | 9년 전 | 248 | ||
| 8200 | 9년 전 | 245 | ||
| 8199 | 9년 전 | 262 | ||
| 8198 | 9년 전 | 233 | ||
| 8197 | 9년 전 | 224 | ||
| 8196 | 9년 전 | 625 | ||
| 8195 | 9년 전 | 224 | ||
| 8194 | 9년 전 | 339 | ||
| 8193 | 9년 전 | 242 | ||
| 8192 | 9년 전 | 259 | ||
| 8191 | 9년 전 | 209 | ||
| 8190 | 9년 전 | 209 | ||
| 8189 | 9년 전 | 266 | ||
| 8188 | 9년 전 | 201 | ||
| 8187 | 9년 전 | 201 | ||
| 8186 | 9년 전 | 203 | ||
| 8185 | 9년 전 | 372 | ||
| 8184 | 9년 전 | 161 | ||
| 8183 | 9년 전 | 385 | ||
| 8182 | 9년 전 | 244 | ||
| 8181 | 9년 전 | 193 | ||
| 8180 | 9년 전 | 773 | ||
| 8179 | 9년 전 | 542 | ||
| 8178 | 9년 전 | 398 | ||
| 8177 |
kiplayer
|
9년 전 | 398 | |
| 8176 | 9년 전 | 428 | ||
| 8175 | 9년 전 | 312 | ||
| 8174 | 9년 전 | 312 | ||
| 8173 | 9년 전 | 400 | ||
| 8172 | 9년 전 | 273 | ||
| 8171 | 9년 전 | 240 | ||
| 8170 | 9년 전 | 366 | ||
| 8169 |
커네드커네드
|
9년 전 | 314 | |
| 8168 | 9년 전 | 394 | ||
| 8167 | 9년 전 | 382 | ||
| 8166 | 9년 전 | 288 | ||
| 8165 | 9년 전 | 234 | ||
| 8164 | 9년 전 | 367 | ||
| 8163 | 9년 전 | 357 | ||
| 8162 | 9년 전 | 363 | ||
| 8161 | 9년 전 | 377 | ||
| 8160 |
|
9년 전 | 576 | |
| 8159 | 9년 전 | 516 | ||
| 8158 | 9년 전 | 324 | ||
| 8157 | 9년 전 | 433 | ||
| 8156 | 9년 전 | 320 | ||
| 8155 | 9년 전 | 311 | ||
| 8154 |
00년생용띠
|
9년 전 | 652 | |
| 8153 | 9년 전 | 295 | ||
| 8152 |
|
9년 전 | 479 | |
| 8151 | 9년 전 | 471 | ||
| 8150 | 9년 전 | 580 | ||
| 8149 |
Jangfolk
|
9년 전 | 428 | |
| 8148 | 9년 전 | 244 | ||
| 8147 | 9년 전 | 445 | ||
| 8146 | 9년 전 | 524 | ||
| 8145 | 9년 전 | 471 | ||
| 8144 | 9년 전 | 436 | ||
| 8143 | 9년 전 | 269 | ||
| 8142 | 9년 전 | 488 | ||
| 8141 | 9년 전 | 433 | ||
| 8140 | 9년 전 | 990 | ||
| 8139 | 9년 전 | 341 | ||
| 8138 |
전갈자리남자
|
9년 전 | 449 | |
| 8137 | 9년 전 | 482 | ||
| 8136 | 9년 전 | 811 | ||
| 8135 |
|
9년 전 | 848 | |
| 8134 |
PlayPixel
|
9년 전 | 587 | |
| 8133 |
|
9년 전 | 503 | |
| 8132 | 9년 전 | 534 | ||
| 8131 | 9년 전 | 888 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기