후이즈검색 하기 입니다.

· 10년 전 · 1495

<?
$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,434
9년 전 조회 1,842
9년 전 조회 1,882
9년 전 조회 1,622
9년 전 조회 1,493
9년 전 조회 1,544
9년 전 조회 1,886
9년 전 조회 1,446
9년 전 조회 1,684
9년 전 조회 1,518
9년 전 조회 1,606
9년 전 조회 1,479
9년 전 조회 1,749
9년 전 조회 1,459
9년 전 조회 1,421
9년 전 조회 1,396
9년 전 조회 1,488
9년 전 조회 1,409
9년 전 조회 1,475
9년 전 조회 1,575
9년 전 조회 1,389
9년 전 조회 1,424
9년 전 조회 1,418
9년 전 조회 1,537
9년 전 조회 1,397
9년 전 조회 1,511
9년 전 조회 1,350
9년 전 조회 1,424
9년 전 조회 1,247
10년 전 조회 1,472
10년 전 조회 1,288
10년 전 조회 1,298
10년 전 조회 1,393
10년 전 조회 1,323
10년 전 조회 1,338
10년 전 조회 1,261
10년 전 조회 1,677
10년 전 조회 1,724
10년 전 조회 1,694
10년 전 조회 1,626
10년 전 조회 1,420
10년 전 조회 1,559
10년 전 조회 1,704
10년 전 조회 1,387
10년 전 조회 1,698
10년 전 조회 1,673
10년 전 조회 2,045
10년 전 조회 1,643
10년 전 조회 1,870
10년 전 조회 1,496
10년 전 조회 1,620
10년 전 조회 1,350
10년 전 조회 1,404
10년 전 조회 1,478
10년 전 조회 1,470
10년 전 조회 1,600
10년 전 조회 1,381
10년 전 조회 1,413
10년 전 조회 1,364
10년 전 조회 1,330
10년 전 조회 1,384
10년 전 조회 1,220
10년 전 조회 1,267
10년 전 조회 1,183
10년 전 조회 1,323
10년 전 조회 1,261
10년 전 조회 1,742
10년 전 조회 1,229
10년 전 조회 1,187
10년 전 조회 1,437
10년 전 조회 1,242
10년 전 조회 1,213
10년 전 조회 1,222
10년 전 조회 1,173
10년 전 조회 1,101
10년 전 조회 1,088
10년 전 조회 1,183
10년 전 조회 1,188
10년 전 조회 1,113
10년 전 조회 1,007
10년 전 조회 1,091
10년 전 조회 1,058
10년 전 조회 1,097
10년 전 조회 1,138
10년 전 조회 1,133
10년 전 조회 1,085
10년 전 조회 1,092
10년 전 조회 1,147
10년 전 조회 1,100
10년 전 조회 1,178
10년 전 조회 1,116
10년 전 조회 1,048
10년 전 조회 1,028
10년 전 조회 1,051
10년 전 조회 1,017
10년 전 조회 1,057
10년 전 조회 1,085
10년 전 조회 1,036
10년 전 조회 1,109
10년 전 조회 1,044