후이즈검색 하기 입니다.

· 10년 전 · 1798

<?
$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,806
9년 전 조회 2,208
9년 전 조회 2,249
9년 전 조회 1,981
9년 전 조회 1,824
9년 전 조회 1,874
9년 전 조회 2,227
9년 전 조회 1,783
10년 전 조회 2,042
10년 전 조회 1,832
10년 전 조회 1,953
10년 전 조회 1,804
10년 전 조회 2,075
10년 전 조회 1,776
10년 전 조회 1,755
10년 전 조회 1,748
10년 전 조회 1,825
10년 전 조회 1,779
10년 전 조회 1,782
10년 전 조회 1,914
10년 전 조회 1,715
10년 전 조회 1,735
10년 전 조회 1,765
10년 전 조회 1,882
10년 전 조회 1,732
10년 전 조회 1,865
10년 전 조회 1,631
10년 전 조회 1,738
10년 전 조회 1,528
10년 전 조회 1,772
10년 전 조회 1,546
10년 전 조회 1,615
10년 전 조회 1,719
10년 전 조회 1,609
10년 전 조회 1,649
10년 전 조회 1,597
10년 전 조회 2,000
10년 전 조회 2,005
10년 전 조회 1,997
10년 전 조회 1,974
10년 전 조회 1,748
10년 전 조회 1,868
10년 전 조회 2,026
10년 전 조회 1,729
10년 전 조회 2,021
10년 전 조회 1,986
10년 전 조회 2,369
10년 전 조회 1,973
10년 전 조회 2,199
10년 전 조회 1,799
10년 전 조회 1,959
10년 전 조회 1,650
10년 전 조회 1,739
10년 전 조회 1,775
10년 전 조회 1,784
10년 전 조회 1,939
10년 전 조회 1,714
10년 전 조회 1,745
10년 전 조회 1,759
10년 전 조회 1,661
10년 전 조회 1,718
10년 전 조회 1,529
10년 전 조회 1,597
10년 전 조회 1,518
10년 전 조회 1,672
10년 전 조회 1,614
10년 전 조회 2,089
10년 전 조회 1,566
10년 전 조회 1,525
10년 전 조회 1,791
10년 전 조회 1,601
10년 전 조회 1,560
10년 전 조회 1,566
10년 전 조회 1,530
10년 전 조회 1,449
10년 전 조회 1,429
10년 전 조회 1,540
10년 전 조회 1,512
10년 전 조회 1,465
10년 전 조회 1,357
10년 전 조회 1,426
10년 전 조회 1,467
10년 전 조회 1,449
10년 전 조회 1,516
10년 전 조회 1,481
10년 전 조회 1,444
10년 전 조회 1,442
10년 전 조회 1,484
10년 전 조회 1,462
10년 전 조회 1,546
10년 전 조회 1,451
10년 전 조회 1,405
10년 전 조회 1,377
10년 전 조회 1,402
10년 전 조회 1,425
10년 전 조회 1,419
10년 전 조회 1,442
10년 전 조회 1,380
10년 전 조회 1,457
10년 전 조회 1,389