후이즈검색 하기 입니다.

· 10년 전 · 1323

<?
$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,228
9년 전 조회 1,639
9년 전 조회 1,679
9년 전 조회 1,423
9년 전 조회 1,274
9년 전 조회 1,313
9년 전 조회 1,678
9년 전 조회 1,261
9년 전 조회 1,473
9년 전 조회 1,326
9년 전 조회 1,405
9년 전 조회 1,281
9년 전 조회 1,559
9년 전 조회 1,266
9년 전 조회 1,249
9년 전 조회 1,205
9년 전 조회 1,309
9년 전 조회 1,192
9년 전 조회 1,278
9년 전 조회 1,406
9년 전 조회 1,194
9년 전 조회 1,240
9년 전 조회 1,218
9년 전 조회 1,361
9년 전 조회 1,187
9년 전 조회 1,315
9년 전 조회 1,154
9년 전 조회 1,217
9년 전 조회 1,058
9년 전 조회 1,279
9년 전 조회 1,139
9년 전 조회 1,146
9년 전 조회 1,196
9년 전 조회 1,153
9년 전 조회 1,174
9년 전 조회 1,103
10년 전 조회 1,484
10년 전 조회 1,561
10년 전 조회 1,513
10년 전 조회 1,448
10년 전 조회 1,246
10년 전 조회 1,388
10년 전 조회 1,542
10년 전 조회 1,215
10년 전 조회 1,565
10년 전 조회 1,521
10년 전 조회 1,882
10년 전 조회 1,490
10년 전 조회 1,700
10년 전 조회 1,324
10년 전 조회 1,470
10년 전 조회 1,186
10년 전 조회 1,235
10년 전 조회 1,313
10년 전 조회 1,305
10년 전 조회 1,418
10년 전 조회 1,241
10년 전 조회 1,263
10년 전 조회 1,217
10년 전 조회 1,182
10년 전 조회 1,246
10년 전 조회 1,096
10년 전 조회 1,125
10년 전 조회 1,037
10년 전 조회 1,165
10년 전 조회 1,137
10년 전 조회 1,604
10년 전 조회 1,087
10년 전 조회 1,041
10년 전 조회 1,301
10년 전 조회 1,107
10년 전 조회 1,066
10년 전 조회 1,083
10년 전 조회 1,056
10년 전 조회 993
10년 전 조회 971
10년 전 조회 1,029
10년 전 조회 1,044
10년 전 조회 988
10년 전 조회 904
10년 전 조회 972
10년 전 조회 934
10년 전 조회 977
10년 전 조회 1,019
10년 전 조회 1,011
10년 전 조회 957
10년 전 조회 966
10년 전 조회 1,032
10년 전 조회 1,011
10년 전 조회 1,064
10년 전 조회 1,014
10년 전 조회 943
10년 전 조회 919
10년 전 조회 937
10년 전 조회 910
10년 전 조회 945
10년 전 조회 975
10년 전 조회 929
10년 전 조회 976
10년 전 조회 938