후이즈검색 하기 입니다.

· 10년 전 · 1429

<?
$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>  

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
9년 전 조회 1,336
9년 전 조회 1,767
9년 전 조회 1,789
9년 전 조회 1,544
9년 전 조회 1,424
9년 전 조회 1,451
9년 전 조회 1,801
9년 전 조회 1,364
9년 전 조회 1,582
9년 전 조회 1,446
9년 전 조회 1,533
9년 전 조회 1,401
9년 전 조회 1,670
9년 전 조회 1,383
9년 전 조회 1,355
9년 전 조회 1,326
9년 전 조회 1,417
9년 전 조회 1,321
9년 전 조회 1,399
9년 전 조회 1,496
9년 전 조회 1,304
9년 전 조회 1,351
9년 전 조회 1,338
9년 전 조회 1,473
9년 전 조회 1,318
9년 전 조회 1,440
9년 전 조회 1,277
9년 전 조회 1,360
9년 전 조회 1,185
9년 전 조회 1,401
9년 전 조회 1,251
9년 전 조회 1,239
9년 전 조회 1,311
9년 전 조회 1,258
9년 전 조회 1,285
9년 전 조회 1,204
10년 전 조회 1,603
10년 전 조회 1,660
10년 전 조회 1,614
10년 전 조회 1,565
10년 전 조회 1,352
10년 전 조회 1,490
10년 전 조회 1,646
10년 전 조회 1,329
10년 전 조회 1,641
10년 전 조회 1,616
10년 전 조회 1,977
10년 전 조회 1,587
10년 전 조회 1,807
10년 전 조회 1,430
10년 전 조회 1,559
10년 전 조회 1,288
10년 전 조회 1,334
10년 전 조회 1,412
10년 전 조회 1,406
10년 전 조회 1,537
10년 전 조회 1,329
10년 전 조회 1,356
10년 전 조회 1,311
10년 전 조회 1,276
10년 전 조회 1,320
10년 전 조회 1,164
10년 전 조회 1,215
10년 전 조회 1,135
10년 전 조회 1,244
10년 전 조회 1,221
10년 전 조회 1,693
10년 전 조회 1,171
10년 전 조회 1,132
10년 전 조회 1,376
10년 전 조회 1,188
10년 전 조회 1,158
10년 전 조회 1,163
10년 전 조회 1,124
10년 전 조회 1,059
10년 전 조회 1,041
10년 전 조회 1,118
10년 전 조회 1,134
10년 전 조회 1,064
10년 전 조회 971
10년 전 조회 1,051
10년 전 조회 1,011
10년 전 조회 1,056
10년 전 조회 1,088
10년 전 조회 1,090
10년 전 조회 1,030
10년 전 조회 1,038
10년 전 조회 1,099
10년 전 조회 1,056
10년 전 조회 1,127
10년 전 조회 1,078
10년 전 조회 1,017
10년 전 조회 981
10년 전 조회 1,011
10년 전 조회 966
10년 전 조회 1,009
10년 전 조회 1,040
10년 전 조회 993
10년 전 조회 1,053
10년 전 조회 1,016