후이즈검색 하기 입니다.

· 10년 전 · 841

<?
$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년 전 조회 604
9년 전 조회 989
9년 전 조회 1,044
9년 전 조회 767
9년 전 조회 626
9년 전 조회 688
9년 전 조회 1,052
9년 전 조회 713
9년 전 조회 910
9년 전 조회 765
9년 전 조회 840
9년 전 조회 744
9년 전 조회 1,031
9년 전 조회 752
9년 전 조회 718
9년 전 조회 692
9년 전 조회 798
9년 전 조회 704
9년 전 조회 782
9년 전 조회 881
9년 전 조회 655
9년 전 조회 707
9년 전 조회 718
9년 전 조회 849
9년 전 조회 685
9년 전 조회 815
9년 전 조회 615
9년 전 조회 696
9년 전 조회 545
9년 전 조회 756
9년 전 조회 635
9년 전 조회 664
9년 전 조회 718
9년 전 조회 662
9년 전 조회 671
9년 전 조회 643
9년 전 조회 1,016
9년 전 조회 1,053
9년 전 조회 1,039
9년 전 조회 978
9년 전 조회 769
9년 전 조회 927
9년 전 조회 1,055
9년 전 조회 759
9년 전 조회 1,041
9년 전 조회 998
10년 전 조회 1,409
10년 전 조회 1,023
10년 전 조회 1,213
10년 전 조회 842
10년 전 조회 999
10년 전 조회 718
10년 전 조회 742
10년 전 조회 862
10년 전 조회 828
10년 전 조회 991
10년 전 조회 727
10년 전 조회 784
10년 전 조회 752
10년 전 조회 672
10년 전 조회 779
10년 전 조회 617
10년 전 조회 678
10년 전 조회 606
10년 전 조회 697
10년 전 조회 676
10년 전 조회 1,124
10년 전 조회 644
10년 전 조회 574
10년 전 조회 842
10년 전 조회 664
10년 전 조회 637
10년 전 조회 631
10년 전 조회 588
10년 전 조회 530
10년 전 조회 512
10년 전 조회 587
10년 전 조회 603
10년 전 조회 554
10년 전 조회 501
10년 전 조회 591
10년 전 조회 554
10년 전 조회 566
10년 전 조회 625
10년 전 조회 629
10년 전 조회 522
10년 전 조회 564
10년 전 조회 624
10년 전 조회 566
10년 전 조회 654
10년 전 조회 594
10년 전 조회 538
10년 전 조회 516
10년 전 조회 544
10년 전 조회 498
10년 전 조회 535
10년 전 조회 569
10년 전 조회 501
10년 전 조회 552
10년 전 조회 507