후이즈검색 하기 입니다.

· 10년 전 · 1694

<?
$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,607
9년 전 조회 1,989
9년 전 조회 2,038
9년 전 조회 1,793
9년 전 조회 1,628
9년 전 조회 1,677
9년 전 조회 2,027
9년 전 조회 1,629
9년 전 조회 1,880
9년 전 조회 1,694
9년 전 조회 1,809
9년 전 조회 1,673
9년 전 조회 1,938
10년 전 조회 1,641
10년 전 조회 1,610
10년 전 조회 1,612
10년 전 조회 1,698
10년 전 조회 1,638
10년 전 조회 1,664
10년 전 조회 1,779
10년 전 조회 1,580
10년 전 조회 1,591
10년 전 조회 1,631
10년 전 조회 1,754
10년 전 조회 1,595
10년 전 조회 1,718
10년 전 조회 1,519
10년 전 조회 1,603
10년 전 조회 1,420
10년 전 조회 1,646
10년 전 조회 1,447
10년 전 조회 1,493
10년 전 조회 1,599
10년 전 조회 1,498
10년 전 조회 1,534
10년 전 조회 1,461
10년 전 조회 1,877
10년 전 조회 1,889
10년 전 조회 1,880
10년 전 조회 1,841
10년 전 조회 1,627
10년 전 조회 1,748
10년 전 조회 1,915
10년 전 조회 1,626
10년 전 조회 1,901
10년 전 조회 1,879
10년 전 조회 2,255
10년 전 조회 1,857
10년 전 조회 2,069
10년 전 조회 1,695
10년 전 조회 1,848
10년 전 조회 1,544
10년 전 조회 1,624
10년 전 조회 1,668
10년 전 조회 1,666
10년 전 조회 1,833
10년 전 조회 1,595
10년 전 조회 1,625
10년 전 조회 1,630
10년 전 조회 1,543
10년 전 조회 1,599
10년 전 조회 1,413
10년 전 조회 1,496
10년 전 조회 1,407
10년 전 조회 1,560
10년 전 조회 1,494
10년 전 조회 1,967
10년 전 조회 1,430
10년 전 조회 1,406
10년 전 조회 1,664
10년 전 조회 1,464
10년 전 조회 1,438
10년 전 조회 1,441
10년 전 조회 1,389
10년 전 조회 1,323
10년 전 조회 1,296
10년 전 조회 1,413
10년 전 조회 1,384
10년 전 조회 1,338
10년 전 조회 1,224
10년 전 조회 1,307
10년 전 조회 1,305
10년 전 조회 1,325
10년 전 조회 1,371
10년 전 조회 1,364
10년 전 조회 1,312
10년 전 조회 1,310
10년 전 조회 1,358
10년 전 조회 1,332
10년 전 조회 1,420
10년 전 조회 1,323
10년 전 조회 1,276
10년 전 조회 1,258
10년 전 조회 1,277
10년 전 조회 1,286
10년 전 조회 1,287
10년 전 조회 1,307
10년 전 조회 1,254
10년 전 조회 1,319
10년 전 조회 1,246