후이즈검색 하기 입니다.

· 10년 전 · 1584

<?
$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,511
9년 전 조회 1,921
9년 전 조회 1,965
9년 전 조회 1,698
9년 전 조회 1,566
9년 전 조회 1,612
9년 전 조회 1,952
9년 전 조회 1,545
9년 전 조회 1,776
9년 전 조회 1,610
9년 전 조회 1,706
9년 전 조회 1,576
9년 전 조회 1,832
9년 전 조회 1,546
9년 전 조회 1,515
9년 전 조회 1,481
9년 전 조회 1,586
9년 전 조회 1,521
9년 전 조회 1,576
9년 전 조회 1,677
9년 전 조회 1,487
10년 전 조회 1,507
10년 전 조회 1,511
10년 전 조회 1,643
10년 전 조회 1,494
10년 전 조회 1,601
10년 전 조회 1,428
10년 전 조회 1,509
10년 전 조회 1,333
10년 전 조회 1,551
10년 전 조회 1,364
10년 전 조회 1,393
10년 전 조회 1,498
10년 전 조회 1,397
10년 전 조회 1,429
10년 전 조회 1,358
10년 전 조회 1,770
10년 전 조회 1,805
10년 전 조회 1,765
10년 전 조회 1,727
10년 전 조회 1,508
10년 전 조회 1,643
10년 전 조회 1,796
10년 전 조회 1,502
10년 전 조회 1,803
10년 전 조회 1,760
10년 전 조회 2,146
10년 전 조회 1,754
10년 전 조회 1,959
10년 전 조회 1,585
10년 전 조회 1,717
10년 전 조회 1,439
10년 전 조회 1,498
10년 전 조회 1,561
10년 전 조회 1,555
10년 전 조회 1,702
10년 전 조회 1,471
10년 전 조회 1,502
10년 전 조회 1,469
10년 전 조회 1,411
10년 전 조회 1,475
10년 전 조회 1,290
10년 전 조회 1,359
10년 전 조회 1,269
10년 전 조회 1,406
10년 전 조회 1,355
10년 전 조회 1,831
10년 전 조회 1,305
10년 전 조회 1,276
10년 전 조회 1,531
10년 전 조회 1,342
10년 전 조회 1,310
10년 전 조회 1,319
10년 전 조회 1,257
10년 전 조회 1,189
10년 전 조회 1,175
10년 전 조회 1,265
10년 전 조회 1,260
10년 전 조회 1,194
10년 전 조회 1,092
10년 전 조회 1,179
10년 전 조회 1,149
10년 전 조회 1,173
10년 전 조회 1,228
10년 전 조회 1,230
10년 전 조회 1,167
10년 전 조회 1,173
10년 전 조회 1,218
10년 전 조회 1,187
10년 전 조회 1,260
10년 전 조회 1,185
10년 전 조회 1,134
10년 전 조회 1,114
10년 전 조회 1,135
10년 전 조회 1,115
10년 전 조회 1,141
10년 전 조회 1,160
10년 전 조회 1,128
10년 전 조회 1,180
10년 전 조회 1,124