후이즈검색 하기 입니다.

· 10년 전 · 1314

<?
$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,222
9년 전 조회 1,634
9년 전 조회 1,676
9년 전 조회 1,415
9년 전 조회 1,262
9년 전 조회 1,308
9년 전 조회 1,669
9년 전 조회 1,255
9년 전 조회 1,460
9년 전 조회 1,315
9년 전 조회 1,398
9년 전 조회 1,272
9년 전 조회 1,556
9년 전 조회 1,261
9년 전 조회 1,243
9년 전 조회 1,197
9년 전 조회 1,303
9년 전 조회 1,183
9년 전 조회 1,275
9년 전 조회 1,399
9년 전 조회 1,192
9년 전 조회 1,232
9년 전 조회 1,214
9년 전 조회 1,357
9년 전 조회 1,184
9년 전 조회 1,299
9년 전 조회 1,147
9년 전 조회 1,213
9년 전 조회 1,051
9년 전 조회 1,271
9년 전 조회 1,134
9년 전 조회 1,138
9년 전 조회 1,188
9년 전 조회 1,146
9년 전 조회 1,163
9년 전 조회 1,101
10년 전 조회 1,479
10년 전 조회 1,558
10년 전 조회 1,504
10년 전 조회 1,444
10년 전 조회 1,244
10년 전 조회 1,383
10년 전 조회 1,537
10년 전 조회 1,209
10년 전 조회 1,561
10년 전 조회 1,515
10년 전 조회 1,873
10년 전 조회 1,484
10년 전 조회 1,692
10년 전 조회 1,315
10년 전 조회 1,463
10년 전 조회 1,181
10년 전 조회 1,228
10년 전 조회 1,307
10년 전 조회 1,302
10년 전 조회 1,413
10년 전 조회 1,234
10년 전 조회 1,255
10년 전 조회 1,214
10년 전 조회 1,174
10년 전 조회 1,242
10년 전 조회 1,090
10년 전 조회 1,120
10년 전 조회 1,033
10년 전 조회 1,161
10년 전 조회 1,130
10년 전 조회 1,600
10년 전 조회 1,079
10년 전 조회 1,033
10년 전 조회 1,295
10년 전 조회 1,103
10년 전 조회 1,062
10년 전 조회 1,078
10년 전 조회 1,052
10년 전 조회 986
10년 전 조회 965
10년 전 조회 1,023
10년 전 조회 1,040
10년 전 조회 983
10년 전 조회 901
10년 전 조회 970
10년 전 조회 929
10년 전 조회 969
10년 전 조회 1,015
10년 전 조회 1,009
10년 전 조회 955
10년 전 조회 959
10년 전 조회 1,027
10년 전 조회 1,007
10년 전 조회 1,060
10년 전 조회 1,009
10년 전 조회 937
10년 전 조회 917
10년 전 조회 933
10년 전 조회 908
10년 전 조회 944
10년 전 조회 974
10년 전 조회 922
10년 전 조회 971
10년 전 조회 932